Fixes assertion on calling String builtin with symbol (#2803)

JerryScript-DCO-1.0-Signed-off-by: legendecas [email protected]
This commit is contained in:
legendecas authored and Robert Fancsik committed 2019-03-26 16:14:04 +01:00
1 parent 3d656cdf57
commit 772ab277ea
2 files changed
+17

No files matched your search

@@ -29,6 +29,8 @@ try {
var foo = Symbol ('foo');
assert (foo.toString () === "Symbol(foo)");
assert (String (foo) === "Symbol(foo)");
var fooObj = Object (foo);
assert (fooObj.toString () === "Symbol(foo)");
assert (String (fooObj) === "Symbol(foo)");