Parse class heritage as strict mode code (#9315)
This commit is contained in:
4
packages/babel-parser/test/fixtures/es2015/class/extends-strict/input.js
vendored
Normal file
4
packages/babel-parser/test/fixtures/es2015/class/extends-strict/input.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
class C extends (function B() {
|
||||
with ({});
|
||||
return B;
|
||||
}()) {}
|
||||
3
packages/babel-parser/test/fixtures/es2015/class/extends-strict/options.json
vendored
Normal file
3
packages/babel-parser/test/fixtures/es2015/class/extends-strict/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "'with' in strict mode (2:2)"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected \"{\" (1:22)"
|
||||
"throws": "yield is a reserved word in strict mode (1:16)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user