diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.inc.h b/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.inc.h index 7d871f548..840a91a36 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.inc.h +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-symbol.inc.h @@ -30,7 +30,7 @@ NUMBER_VALUE (LIT_MAGIC_STRING_LENGTH, ECMA_PROPERTY_FLAG_CONFIGURABLE) STRING_VALUE (LIT_MAGIC_STRING_NAME, - LIT_MAGIC_STRING_STRING_UL, + LIT_MAGIC_STRING_SYMBOL_UL, ECMA_PROPERTY_FLAG_CONFIGURABLE) /* Object properties: diff --git a/jerry-core/ecma/operations/ecma-symbol-object.c b/jerry-core/ecma/operations/ecma-symbol-object.c index 272186f5a..8f8e831e9 100644 --- a/jerry-core/ecma/operations/ecma-symbol-object.c +++ b/jerry-core/ecma/operations/ecma-symbol-object.c @@ -50,7 +50,7 @@ ecma_op_create_symbol (const ecma_value_t *arguments_list_p, /**< list of argume ecma_value_t string_desc; /* 1-3. */ - if (arguments_list_len == 0) + if (arguments_list_len == 0 || ecma_is_value_undefined (arguments_list_p[0])) { string_desc = ECMA_VALUE_UNDEFINED; } diff --git a/tests/test262-esnext-excludelist.xml b/tests/test262-esnext-excludelist.xml index 045f23711..36ef44ffb 100644 --- a/tests/test262-esnext-excludelist.xml +++ b/tests/test262-esnext-excludelist.xml @@ -1613,7 +1613,6 @@ - @@ -1623,11 +1622,6 @@ - - - - -