Make classes implicitly strict mode

This commit is contained in:
Anthony Van de Gejuchte
2016-09-11 15:06:10 +02:00
parent 88f6ff38d1
commit 947b8750e8
5 changed files with 71 additions and 5 deletions

View File

@@ -120,7 +120,6 @@ yield_as_identifier_outside_strict_mode: {
function foo(...yield){}
try { new Error("") } catch (yield) {}
var yield = "foo";
class yield {}
}
expect: {
import yield from "bar";
@@ -137,7 +136,6 @@ yield_as_identifier_outside_strict_mode: {
function foo(...yield){}
try { new Error("") } catch (yield) {}
var yield = "foo";
class yield {}
}
}