Introduce builtin intrinsic object to share property values between builtin objects (#3490)
Fixed: - Global symbol access - Array.prototype.values and Array.prototype[Symbol.iterator] must be the same function object To test the new functionality arguments object Symbol.iterator property is added. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -235,7 +235,7 @@ ecma_op_general_object_default_value (ecma_object_t *obj_p, /**< the object */
|
||||
ecma_value_t obj_value = ecma_make_object_value (obj_p);
|
||||
|
||||
ecma_value_t exotic_to_prim = ecma_op_get_method_by_symbol_id (obj_value,
|
||||
LIT_MAGIC_STRING_TO_PRIMITIVE);
|
||||
LIT_GLOBAL_SYMBOL_TO_PRIMITIVE);
|
||||
|
||||
if (ECMA_IS_VALUE_ERROR (exotic_to_prim))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user