diff options
Diffstat (limited to 'deps/v8/test/webkit/class-syntax-expression.js')
-rw-r--r-- | deps/v8/test/webkit/class-syntax-expression.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/test/webkit/class-syntax-expression.js b/deps/v8/test/webkit/class-syntax-expression.js index ab6dc0e49e..0cea5d70e4 100644 --- a/deps/v8/test/webkit/class-syntax-expression.js +++ b/deps/v8/test/webkit/class-syntax-expression.js @@ -62,9 +62,9 @@ shouldThrow("x = class { set constructor() {} }", "'SyntaxError: Class construct shouldNotThrow("x = class { constructor() {} static constructor() { return staticMethodValue; } }"); shouldBe("x = class { constructor() {} static constructor() { return staticMethodValue; } }; x.constructor()", "staticMethodValue"); -shouldThrow("x = class { constructor() {} static prototype() {} }", "'SyntaxError: Classes may not have static property named prototype'"); -shouldThrow("x = class { constructor() {} static get prototype() {} }", "'SyntaxError: Classes may not have static property named prototype'"); -shouldThrow("x = class { constructor() {} static set prototype() {} }", "'SyntaxError: Classes may not have static property named prototype'"); +shouldThrow("x = class { constructor() {} static prototype() {} }", '"SyntaxError: Classes may not have a static property named \'prototype\'"'); +shouldThrow("x = class { constructor() {} static get prototype() {} }", '"SyntaxError: Classes may not have a static property named \'prototype\'"'); +shouldThrow("x = class { constructor() {} static set prototype() {} }", '"SyntaxError: Classes may not have a static property named \'prototype\'"'); shouldNotThrow("x = class { constructor() {} prototype() { return instanceMethodValue; } }"); shouldBe("x = class { constructor() {} prototype() { return instanceMethodValue; } }; (new x).prototype()", "instanceMethodValue"); |