diff options
Diffstat (limited to 'deps/v8/test/mjsunit/messages.js')
-rw-r--r-- | deps/v8/test/mjsunit/messages.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/messages.js b/deps/v8/test/mjsunit/messages.js index 8796d05f16..30abc197e9 100644 --- a/deps/v8/test/mjsunit/messages.js +++ b/deps/v8/test/mjsunit/messages.js @@ -3,7 +3,7 @@ // found in the LICENSE file. // Flags: --stack-size=100 --harmony -// Flags: --harmony-simd --harmony-instanceof +// Flags: --harmony-simd function test(f, expected, type) { try { @@ -147,7 +147,12 @@ test(function() { }, "Method Set.prototype.add called on incompatible receiver [object Array]", TypeError); -// kInstanceofFunctionExpected +// kNonCallableInInstanceOfCheck +test(function() { + 1 instanceof {}; +}, "Right-hand side of 'instanceof' is not callable", TypeError); + +// kNonObjectInInstanceOfCheck test(function() { 1 instanceof 1; }, "Right-hand side of 'instanceof' is not an object", TypeError); |