Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index b42cc3019342760d9bde3a18eb8a204ad0cb252a..5739c965cd0b456864daa109e8916efb449c85e3 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -57,18 +57,6 @@ |
Object.defineProperty(1, "x", {}); |
}, "Object.defineProperty called on non-object", TypeError); |
-test(function() { |
- (function() {}).apply({}, 1); |
-}, "CreateListFromArrayLike called on non-object", TypeError); |
- |
-test(function() { |
- Reflect.apply(function() {}, {}, 1); |
-}, "CreateListFromArrayLike called on non-object", TypeError); |
- |
-test(function() { |
- Reflect.construct(function() {}, 1); |
-}, "CreateListFromArrayLike called on non-object", TypeError); |
- |
// kCalledOnNullOrUndefined |
test(function() { |
Array.prototype.shift.call(null); |
@@ -342,6 +330,19 @@ |
}, "Invalid property descriptor. Cannot both specify accessors " + |
"and a value or writable attribute, #<Object>", TypeError); |
+// kWrongArgs |
+test(function() { |
+ (function() {}).apply({}, 1); |
+}, "Function.prototype.apply: Arguments list has wrong type", TypeError); |
+ |
+test(function() { |
+ Reflect.apply(function() {}, {}, 1); |
+}, "Reflect.apply: Arguments list has wrong type", TypeError); |
+ |
+test(function() { |
+ Reflect.construct(function() {}, 1); |
+}, "Reflect.construct: Arguments list has wrong type", TypeError); |
+ |
// === SyntaxError === |