-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken tests + add some more test cases
- Loading branch information
Showing
18 changed files
with
2,671 additions
and
1,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ures/es2020/optional-chaining/invalid-optional-chaining-new-callee-with-args.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":8,"lineNumber":1,"column":9,"message":"Line 1: Invalid optional chain from new expression","description":"Invalid optional chain from new expression"} |
1 change: 1 addition & 0 deletions
1
...Tests/Fixtures/es2020/optional-chaining/invalid-optional-chaining-new-callee-with-args.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
new a?.b() |
1 change: 1 addition & 0 deletions
1
...s/es2020/optional-chaining/invalid-optional-chaining-new-callee-without-args.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":8,"lineNumber":1,"column":9,"message":"Line 1: Invalid optional chain from new expression","description":"Invalid optional chain from new expression"} |
1 change: 1 addition & 0 deletions
1
...ts/Fixtures/es2020/optional-chaining/invalid-optional-chaining-new-callee-without-args.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
new a?.b |
1 change: 1 addition & 0 deletions
1
...Fixtures/es2020/optional-chaining/invalid-optional-chaining-new-construction.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":7,"lineNumber":1,"column":8,"message":"Line 1: Unexpected token (","description":"Unexpected token ("} |
1 change: 1 addition & 0 deletions
1
...ima.Tests/Fixtures/es2020/optional-chaining/invalid-optional-chaining-new-construction.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
new a?.() |
1 change: 1 addition & 0 deletions
1
...ixtures/es2020/optional-chaining/invalid-optional-chaining-new-leading-paren.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":14,"lineNumber":1,"column":15,"message":"Line 1: Invalid optional chain from new expression","description":"Invalid optional chain from new expression"} |
1 change: 1 addition & 0 deletions
1
...ma.Tests/Fixtures/es2020/optional-chaining/invalid-optional-chaining-new-leading-paren.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
new (a?.b)?.c |
1 change: 1 addition & 0 deletions
1
...Tests/Fixtures/es2020/optional-chaining/invalid-optional-chaining-super-call.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":46,"lineNumber":2,"column":26,"message":"Line 2: 'super' keyword unexpected here","description":"'super' keyword unexpected here"} |
3 changes: 3 additions & 0 deletions
3
test/Esprima.Tests/Fixtures/es2020/optional-chaining/invalid-optional-chaining-super-call.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class B extends A { | ||
constructor() { super?.(); } | ||
} |
1 change: 1 addition & 0 deletions
1
...tures/es2020/optional-chaining/invalid-optional-chaining-super-member-access.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":50,"lineNumber":2,"column":30,"message":"Line 2: 'super' keyword unexpected here","description":"'super' keyword unexpected here"} |
3 changes: 3 additions & 0 deletions
3
....Tests/Fixtures/es2020/optional-chaining/invalid-optional-chaining-super-member-access.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class B extends A { | ||
get prop() { return super?.a; } | ||
} |
5 changes: 3 additions & 2 deletions
5
test/Esprima.Tests/Fixtures/es2020/optional-chaining/optional-chaining-computed-property.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
a?.['b'].c | ||
a.b?.['c'] | ||
new a?.['b'].c | ||
new a.b?.['c'] | ||
new (a?.['b'].c) | ||
new (a?.['b']).c | ||
new (a.b?.['c']) |
Oops, something went wrong.