Parse class heritage as strict mode code (#9315)

This commit is contained in:
Nicolò Ribaudo
2019-01-12 14:54:23 +01:00
committed by GitHub
parent 28319eb07e
commit 3e4b608a80
5 changed files with 16 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
class C extends (function B() {
with ({});
return B;
}()) {}

View File

@@ -0,0 +1,3 @@
{
"throws": "'with' in strict mode (2:2)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected \"{\" (1:22)"
"throws": "yield is a reserved word in strict mode (1:16)"
}