diff options
Diffstat (limited to 'deps/v8/test/webkit/class-syntax-super.js')
-rw-r--r-- | deps/v8/test/webkit/class-syntax-super.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/test/webkit/class-syntax-super.js b/deps/v8/test/webkit/class-syntax-super.js index 8625831de5..e355b4b965 100644 --- a/deps/v8/test/webkit/class-syntax-super.js +++ b/deps/v8/test/webkit/class-syntax-super.js @@ -80,12 +80,12 @@ shouldBeFalse('x instanceof Base'); shouldThrow('new (class extends Base { constructor() { } })', '"ReferenceError: this is not defined"'); shouldThrow('new (class extends Base { constructor() { return 1; } })', '"TypeError: Derived constructors may only return object or undefined"'); shouldThrow('new (class extends null { constructor() { return undefined } })'); -shouldThrow('new (class extends null { constructor() { super(); return undefined } })', '"TypeError: function () {} is not a constructor"'); +shouldThrow('new (class extends null { constructor() { super(); return undefined } })', '"TypeError: super is not a constructor"'); shouldBe('x = { }; new (class extends null { constructor() { return x } });', 'x'); shouldBeTrue('x instanceof Object'); shouldThrow('new (class extends null { constructor() { } })', '"ReferenceError: this is not defined"'); shouldThrow('new (class extends null { constructor() { return 1; } })', '"TypeError: Derived constructors may only return object or undefined"'); -shouldThrow('new (class extends null { constructor() { super() } })', '"TypeError: function () {} is not a constructor"'); +shouldThrow('new (class extends null { constructor() { super() } })', '"TypeError: super is not a constructor"'); shouldThrow('new (class { constructor() { super() } })', '"SyntaxError: \'super\' keyword unexpected here"'); shouldThrow('function x() { super(); }', '"SyntaxError: \'super\' keyword unexpected here"'); shouldThrow('new (class extends Object { constructor() { function x() { super() } } })', '"SyntaxError: \'super\' keyword unexpected here"'); |