-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/lexer): Fix typo in
package
keyword (#8589)
**Description:** There is a typo in the ES lexer for the keyword `package`. **Related issue:** - Closes #8588
- Loading branch information
1 parent
386c391
commit 8413a6c
Showing
3 changed files
with
8 additions
and
1 deletion.
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
crates/swc_ecma_parser/tests/typescript-errors/issue-8588/input.ts
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 @@ | ||
const package = 1; |
6 changes: 6 additions & 0 deletions
6
crates/swc_ecma_parser/tests/typescript-errors/issue-8588/input.ts.swc-stderr
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,6 @@ | ||
|
||
x `package` cannot be used as an identifier in strict mode | ||
,-[$DIR/tests/typescript-errors/issue-8588/input.ts:1:1] | ||
1 | const package = 1; | ||
: ^^^^^^^ | ||
`---- |