diff options
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/arrow-functions.js')
-rw-r--r-- | deps/v8/test/mjsunit/harmony/arrow-functions.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/harmony/arrow-functions.js b/deps/v8/test/mjsunit/harmony/arrow-functions.js index 22b1c94f7f..0ffa936991 100644 --- a/deps/v8/test/mjsunit/harmony/arrow-functions.js +++ b/deps/v8/test/mjsunit/harmony/arrow-functions.js @@ -8,7 +8,8 @@ // "new" operator on them. assertEquals("function", typeof (() => {})); assertEquals(Function.prototype, Object.getPrototypeOf(() => {})); -assertThrows("new (() => {})", TypeError); +assertThrows(function() { new (() => {}); }, TypeError); +assertFalse("prototype" in (() => {})); // Check the different syntax variations assertEquals(1, (() => 1)()); |