jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Fix FromPropertyDescriptor function

Open kkristof opened this issue 11 years ago • 2 comments

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.

kkristof avatar May 15 '15 12:05 kkristof

Blocks #34

ruben-ayrapetyan avatar May 15 '15 12:05 ruben-ayrapetyan

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.

ruben-ayrapetyan avatar May 15 '15 16:05 ruben-ayrapetyan