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 [email protected]
This commit is contained in:
kisbg authored and GitHub committed 2020-08-07 15:00:44 +02:00
1 parent 58a649ffe8
commit cebb6aee5c
6 files changed
+45 -18

No files matched your search

@@ -73,3 +73,6 @@ try {
} catch (e) {
assert(e instanceof TypeError);
}
assert(Symbol("").description !== undefined);
assert(Symbol().description === undefined);