Set global object's prototype
The global object should have the same prototype as a simple object. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
@@ -15,10 +15,11 @@
|
||||
|
||||
try
|
||||
{
|
||||
print(this, []);
|
||||
print({toString: function() { throw new TypeError("foo"); }}, []);
|
||||
assert (false);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "foo");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user