| Index: test/webkit/class-syntax-default-constructor.js
|
| diff --git a/test/webkit/class-syntax-default-constructor.js b/test/webkit/class-syntax-default-constructor.js
|
| index 841afddadcc374eaae10ac8d0be9beb6de828402..1695f6a8da7f95194b9db2eace38287090ab8265 100644
|
| --- a/test/webkit/class-syntax-default-constructor.js
|
| +++ b/test/webkit/class-syntax-default-constructor.js
|
| @@ -29,11 +29,11 @@ class A { };
|
| class B extends A { };
|
|
|
| shouldBeTrue('new A instanceof A');
|
| -shouldThrow('A()', '"TypeError: Class constructors cannot be invoked without \'new\'"');
|
| +shouldThrow('A()', '"TypeError: Class constructor A cannot be invoked without \'new\'"');
|
| shouldBeTrue('A.prototype.constructor instanceof Function');
|
| shouldBe('A.prototype.constructor.name', '"A"');
|
| shouldBeTrue('new B instanceof A; new B instanceof A');
|
| -shouldThrow('B()', '"TypeError: Class constructors cannot be invoked without \'new\'"');
|
| +shouldThrow('B()', '"TypeError: Class constructor B cannot be invoked without \'new\'"');
|
| shouldBe('B.prototype.constructor.name', '"B"');
|
| shouldBeTrue('A !== B');
|
| shouldBeTrue('A.prototype.constructor !== B.prototype.constructor');
|
|
|