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

JerryScript-DCO-1.0-Signed-off-by: legendecas legendecas@gmail.com
This commit is contained in:
legendecas
2019-03-26 23:14:04 +08:00
committed by Robert Fancsik
parent 3d656cdf57
commit 772ab277ea
2 changed files with 17 additions and 0 deletions
@@ -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)");