diff options
Diffstat (limited to 'deps/v8/test/webkit/class-syntax-call.js')
-rw-r--r-- | deps/v8/test/webkit/class-syntax-call.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/test/webkit/class-syntax-call.js b/deps/v8/test/webkit/class-syntax-call.js index 747b0ebff8..7ded66fb3f 100644 --- a/deps/v8/test/webkit/class-syntax-call.js +++ b/deps/v8/test/webkit/class-syntax-call.js @@ -32,7 +32,7 @@ shouldNotThrow('new B'); shouldThrow('B()', '"TypeError: Class constructor B cannot be invoked without \'new\'"'); shouldNotThrow('new (class { constructor() {} })()'); shouldThrow('(class { constructor() {} })()', '"TypeError: Class constructor cannot be invoked without \'new\'"'); -shouldThrow('new (class extends null { constructor() { super() } })()', '"TypeError: super is not a constructor"'); +shouldThrow('new (class extends null { constructor() { super() } })()', '"TypeError: Super constructor null of anonymous class is not a constructor"'); shouldThrow('(class extends null { constructor() { super() } })()', '"TypeError: Class constructor cannot be invoked without \'new\'"'); var successfullyParsed = true; |