Index: test/webkit/class-syntax-name-expected.txt |
diff --git a/test/webkit/class-syntax-name-expected.txt b/test/webkit/class-syntax-name-expected.txt |
index 10f38ff2c2e077eee69070f4bb37e6ff02a74dc0..ed49be3309e8ce73d7ecdabcfdfe5281dc6ddbed 100644 |
--- a/test/webkit/class-syntax-name-expected.txt |
+++ b/test/webkit/class-syntax-name-expected.txt |
@@ -108,7 +108,7 @@ PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B e |
Class statement binding in other circumstances |
PASS var result = A; result threw exception ReferenceError: A is not defined. |
PASS 'use strict'; var result = A; result threw exception ReferenceError: A is not defined. |
-FAIL var result = A; class A {}; result should throw an exception. Was undefined. |
+PASS var result = A; class A {}; result threw exception ReferenceError: A is not defined. |
PASS 'use strict'; var result = A; class A {}; result threw exception ReferenceError: A is not defined. |
PASS class A { constructor() { A = 1; } }; new A threw exception TypeError: Assignment to constant variable.. |
PASS 'use strict'; class A { constructor() { A = 1; } }; new A threw exception TypeError: Assignment to constant variable.. |
@@ -118,7 +118,7 @@ PASS class A {}; var result = A; result did not throw exception. |
PASS 'use strict'; class A {}; var result = A; result did not throw exception. |
PASS eval('var Foo = 10'); Foo is 10 |
PASS 'use strict'; eval('var Foo = 10'); Foo threw exception ReferenceError: Foo is not defined. |
-PASS eval('class Bar { constructor() {} }'); Bar.toString() is 'class Bar { constructor() {} }' |
+PASS eval('class Bar { constructor() {} }; Bar.toString()') is 'class Bar { constructor() {} }' |
PASS 'use strict'; eval('class Bar { constructor() {} }'); Bar.toString() threw exception ReferenceError: Bar is not defined. |
PASS successfullyParsed is true |