add esprima tests and fix bugs picked up by it
This commit is contained in:
32
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/expected.json
vendored
Normal file
32
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/expected.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 0,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 0,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
}
|
||||
},
|
||||
"sourceType": "script",
|
||||
"body": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-member-expr.failure.json
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-member-expr.failure.json
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"index":10,"lineNumber":1,"column":11,"message":"Error: Line 1: Unexpected token =>","description":"Unexpected token =>"}
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-member-expr.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-member-expr.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
({a:b[0]})=>0
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-method-in-pattern.failure.json
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-method-in-pattern.failure.json
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"index":14,"lineNumber":1,"column":15,"message":"Error: Line 1: Unexpected token =>","description":"Unexpected token =>"}
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-method-in-pattern.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-method-in-pattern.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
({get a(){}}) => 0;
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-nested-param.failure.json
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-nested-param.failure.json
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"index":50,"lineNumber":1,"column":51,"message":"Error: Line 1: Unexpected token =>","description":"Unexpected token =>"}
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-nested-param.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-nested-param.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
([[[[[[[[[[[[[[[[[[[[{a:b[0]}]]]]]]]]]]]]]]]]]]]])=>0;
|
||||
@@ -0,0 +1 @@
|
||||
{"index":3,"lineNumber":1,"column":4,"message":"Error: Line 1: Unexpected token =>","description":"Unexpected token =>"}
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-pattern-without-parenthesis.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-pattern-without-parenthesis.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
({}=>0)
|
||||
@@ -0,0 +1 @@
|
||||
{"index":4,"lineNumber":1,"column":5,"message":"Error: Line 1: Unexpected token ...","description":"Unexpected token ..."}
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-rest-in-object-pattern.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/invalid-rest-in-object-pattern.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
({a,...b}) => 0;
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/nested-cover-grammar.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/nested-cover-grammar.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
([[[[[[[[[[[[[[[[[[[[{a=b}]]]]]]]]]]]]]]]]]]]])=>0;
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/object-binding-pattern-01.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/object-binding-pattern-01.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
({a,b=b,a:c,[a]:[d]})=>0;
|
||||
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/object-binding-pattern-empty.js
vendored
Executable file
1
test/fixtures/esprima/es2015-arrow-function/object-binding-pattern/object-binding-pattern-empty.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
({})=>0;
|
||||
Reference in New Issue
Block a user