add esprima tests and fix bugs picked up by it
This commit is contained in:
1
test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/actual.js
vendored
Normal file
1
test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function *g() { function yield() {} }
|
||||
3
test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/options.json
vendored
Normal file
3
test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:25)"
|
||||
}
|
||||
Reference in New Issue
Block a user