Fixing test262 built-ins symbol test-cases (#4123)

The remaining test-cases needs realm feature

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2020-08-27 13:39:04 +02:00
committed by GitHub
parent 777b7e9c87
commit 1ec216e573
3 changed files with 2 additions and 8 deletions
@@ -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;
}