Add class properties test with a generator method that results in a parse error
This commit is contained in:
parent
88a67773e6
commit
2e73358fcc
4
test/fixtures/experimental/class-properties/asi-failure-generator/actual.js
vendored
Normal file
4
test/fixtures/experimental/class-properties/asi-failure-generator/actual.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
class Foo {
|
||||
p = x
|
||||
*m () {}
|
||||
}
|
||||
4
test/fixtures/experimental/class-properties/asi-failure-generator/options.json
vendored
Normal file
4
test/fixtures/experimental/class-properties/asi-failure-generator/options.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"throws": "Unexpected token (3:8)",
|
||||
"plugins": ["classProperties"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user