jerryscript
jerryscript copied to clipboard
Fix FromPropertyDescriptor function
In the function ecma_op_from_property_descriptor the forth section is unreachable. FromPropertyDescriptor 8.10.4
The function is needed by the Object.getOwnPropertyDescriptor builtin function 15.2.3.4.
Blocks #34
Fixed. 5c76b3f558faf38bb421bd7e72c07d30ea7a9de3. The condition, checking type of property descriptor was incorrect: instead of checking the type of input descriptor, the type of locally created descriptor was checked.