forked from lightscript/babylon-lightscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for invalid escapes in tagged templates (babel#274)
Per the stage-3 TC39 proposal: https://github.com/tc39/proposal-template-literal-revision
- Loading branch information
Showing
290 changed files
with
11,491 additions
and
38 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
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
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
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
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
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,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:34)" | ||
"throws": "Octal literal in strict mode (1:35)" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:37)" | ||
"throws": "Octal literal in strict mode (1:38)" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:68)" | ||
"throws": "Octal literal in strict mode (1:69)" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:22)" | ||
"throws": "Invalid escape sequence in template (1:23)" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:1)" | ||
"throws": "Invalid escape sequence in template (1:2)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/es2015-template-literals/invalid-escape/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:1)" | ||
"throws": "Invalid escape sequence in template (1:2)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/invalid-syntax/migrated_0216/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:1)" | ||
"throws": "Octal literal in strict mode (1:2)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/invalid-syntax/migrated_0217/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:34)" | ||
"throws": "Octal literal in strict mode (1:35)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/invalid-syntax/migrated_0219/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:37)" | ||
"throws": "Octal literal in strict mode (1:38)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/invalid-syntax/migrated_0221/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:35)" | ||
"throws": "Octal literal in strict mode (1:36)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/invalid-syntax/migrated_0222/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:35)" | ||
"throws": "Octal literal in strict mode (1:36)" | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/esprima/invalid-syntax/migrated_0223/options.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Octal literal in strict mode (1:68)" | ||
"throws": "Octal literal in strict mode (1:69)" | ||
} |
1 change: 1 addition & 0 deletions
1
test/fixtures/experimental/template-literal-invalid-escapes-tagged/1/actual.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 @@ | ||
sampleTag`\01` |
Oops, something went wrong.