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:
Peter Gal
2015-07-03 17:27:01 +02:00
parent e154156cf4
commit 4e5e7bb4c8
3 changed files with 20 additions and 2 deletions
+2 -1
View File
@@ -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");
}