Index: test/mjsunit/object-create.js |
diff --git a/test/mjsunit/object-create.js b/test/mjsunit/object-create.js |
index d4f9e03c800d01403590244be6111f3ef601524d..d2f676e77cfa44309d239e34c22f9dd03bed7050 100644 |
--- a/test/mjsunit/object-create.js |
+++ b/test/mjsunit/object-create.js |
@@ -49,6 +49,27 @@ try { |
assertTrue(/Object or null/.test(e)); |
} |
+try { |
+ Object.create(null, this); |
+ assertTrue(false); |
+} catch(e) { |
+ assertTrue(/Property description/.test(e)) |
+} |
+ |
+try { |
+ Object.create(null, [1, 2, 3]); |
+ assertTrue(false); |
+} catch(e) { |
+ assertTrue(/Property description/.test(e)) |
+} |
+ |
+try { |
+ Object.create(null, new Proxy([1, 2, 3], {})); |
+ assertTrue(false); |
+} catch(e) { |
+ assertTrue(/Property description/.test(e)) |
+} |
+ |
var ctr = 0; |
var ctr2 = 0; |
var ctr3 = 0; |