Fix Symbol's description default value (#4077)

In the standard if we create a Symbol object without adding a description value
default value is undefined not empty string.

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2020-08-07 15:00:44 +02:00
committed by GitHub
parent 58a649ffe8
commit cebb6aee5c
6 changed files with 45 additions and 18 deletions
@@ -73,3 +73,6 @@ try {
} catch (e) {
assert(e instanceof TypeError);
}
assert(Symbol("").description !== undefined);
assert(Symbol().description === undefined);