Implement Symbol.unscopables (#3405)
Added a new property for Array.prototype based on ECMA-262 v6, 22.1.3.31 Also upgraded the HasBinding operation with ECMA-262 v6, 8.1.1.2.1 steps 7-9 JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
52616f7d8c
commit
7bfbc701d8
@@ -510,6 +510,13 @@ BUILTIN_ROUTINE (ECMA_BUILTIN_ID_WEAKSET,
|
||||
|
||||
#if ENABLED (JERRY_ES2015)
|
||||
|
||||
/* The Array.prototype[@@unscopables] object */
|
||||
BUILTIN (ECMA_BUILTIN_ID_ARRAY_PROTOTYPE_UNSCOPABLES,
|
||||
ECMA_OBJECT_TYPE_GENERAL,
|
||||
ECMA_BUILTIN_ID__COUNT,
|
||||
true,
|
||||
array_prototype_unscopables)
|
||||
|
||||
/* The Symbol prototype object (ECMA-262 v6, 19.4.2.7) */
|
||||
BUILTIN (ECMA_BUILTIN_ID_SYMBOL_PROTOTYPE,
|
||||
ECMA_OBJECT_TYPE_GENERAL,
|
||||
|
||||
Reference in New Issue
Block a user