Index: test/webkit/class-syntax-name.js |
diff --git a/test/webkit/class-syntax-name.js b/test/webkit/class-syntax-name.js |
index 09faa3a54aed5fe6d09c08e51506409afea3c0e6..16045651ef35adc5869ec73246e6cf658a4e0cea 100644 |
--- a/test/webkit/class-syntax-name.js |
+++ b/test/webkit/class-syntax-name.js |
@@ -111,5 +111,5 @@ runTestShouldBe("class A { constructor() { } }; A = 1; A", "1"); |
runTestShouldNotThrow("class A {}; var result = A; result"); |
shouldBe("eval('var Foo = 10'); Foo", "10"); |
shouldThrow("'use strict'; eval('var Foo = 10'); Foo"); |
-shouldBe("eval('class Bar { constructor() {} }'); Bar.toString()", "'class Bar { constructor() {} }'"); |
+shouldBe("eval('class Bar { constructor() {} }; Bar.toString()')", "'class Bar { constructor() {} }'"); |
shouldThrow("'use strict'; eval('class Bar { constructor() {} }'); Bar.toString()"); |