diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-async-function.inc.h b/jerry-core/ecma/builtin-objects/ecma-builtin-async-function.inc.h index 104e07a9d..12f3c5e87 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-async-function.inc.h +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-async-function.inc.h @@ -33,9 +33,14 @@ NUMBER_VALUE (LIT_MAGIC_STRING_LENGTH, /* ECMA-262 v10, 25.7.2.2 */ OBJECT_VALUE (LIT_MAGIC_STRING_PROTOTYPE, - ECMA_BUILTIN_ID_ASYNC_FUNCTION, + ECMA_BUILTIN_ID_ASYNC_FUNCTION_PROTOTYPE, ECMA_PROPERTY_FIXED) +/* ECMA-262 v11, 25.7.3.2 */ +STRING_VALUE (LIT_GLOBAL_SYMBOL_TO_STRING_TAG, + LIT_MAGIC_STRING_ASYNC_FUNCTION_UL, + ECMA_PROPERTY_FLAG_CONFIGURABLE) + #endif /* ENABLED (JERRY_ESNEXT) */ #include "ecma-builtin-helpers-macro-undefs.inc.h" diff --git a/jerry-core/parser/js/byte-code.h b/jerry-core/parser/js/byte-code.h index 91e2489fa..cc6f25779 100644 --- a/jerry-core/parser/js/byte-code.h +++ b/jerry-core/parser/js/byte-code.h @@ -907,11 +907,11 @@ typedef enum /* The following functions cannot be constructed (see CBC_FUNCTION_IS_CONSTRUCTABLE) */ CBC_FUNCTION_SCRIPT, /**< script (global) function */ CBC_FUNCTION_GENERATOR, /**< generator function */ - CBC_FUNCTION_ASYNC, /**< async function */ CBC_FUNCTION_ASYNC_GENERATOR, /**< async generator function */ /* The following functions has no prototype (see CBC_FUNCTION_HAS_PROTOTYPE) */ CBC_FUNCTION_ACCESSOR, /**< property accessor function */ + CBC_FUNCTION_ASYNC, /**< async function */ CBC_FUNCTION_METHOD, /**< method */ /* The following functions are arrow function (see CBC_FUNCTION_IS_ARROW) */ diff --git a/tests/test262-esnext-excludelist.xml b/tests/test262-esnext-excludelist.xml index ec55531c5..caf2cfbbe 100644 --- a/tests/test262-esnext-excludelist.xml +++ b/tests/test262-esnext-excludelist.xml @@ -2,10 +2,6 @@ - - - - @@ -97,7 +93,6 @@ - Test expects incorrect call order Test expects incorrect call order Test expects incorrect call order @@ -504,7 +499,6 @@ -