Error constructor prototypes should be Function

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
Peter Gal
2015-07-22 18:14:45 +02:00
committed by Dániel Bátyai
parent f1248b9780
commit 25450d8a12
2 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -131,7 +131,7 @@ var props = {
writable: true,
},
get bar() {
throw TypeError;
throw new TypeError("foo");
return { value : 2, writable : true };
},
prop2: {
@@ -149,6 +149,7 @@ try {
assert (false);
} catch (e) {
assert (e instanceof TypeError);
assert (e.message === "foo");
}
// Define get method which deletes a property