-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(noOctalEscape): fixes and improvements (#5243)
- Loading branch information
Showing
9 changed files
with
318 additions
and
1,342 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
77 changes: 14 additions & 63 deletions
77
crates/biome_js_analyze/tests/specs/nursery/noOctalEscape/invalid.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,64 +1,15 @@ | ||
var foo = "foo \01 bar"; | ||
var foo = "foo \000 bar"; | ||
var foo = "foo \377 bar"; | ||
var foo = "foo \378 bar"; | ||
var foo = "foo \37a bar"; | ||
var foo = "foo \381 bar"; | ||
var foo = "foo \3a1 bar"; | ||
var foo = "foo \251 bar"; | ||
var foo = "foo \258 bar"; | ||
var foo = "foo \25a bar"; | ||
var foo = "\3s51"; | ||
var foo = "\77"; | ||
var foo = "\78"; | ||
var foo = "\5a"; | ||
var foo = "\751"; | ||
var foo = "foo \400 bar"; | ||
var foo = "foo \400 bar"; | ||
var foo = "\t\1"; | ||
var foo = "\\\751"; | ||
'\0\1' | ||
'\0 \1' | ||
'\0\01' | ||
'\0 \01' | ||
'\0a\1' | ||
'\0a\01' | ||
'\0\08' | ||
'\1' | ||
'\2' | ||
'\7' | ||
'\00' | ||
'\01' | ||
'\02' | ||
'\07' | ||
'\08' | ||
'\09' | ||
'\10' | ||
'\12' | ||
' \1' | ||
'\1 ' | ||
'a\1' | ||
'\1a' | ||
'a\1a' | ||
' \01' | ||
'\01 ' | ||
'a\01' | ||
'\01a' | ||
'a\01a' | ||
'a\08a' | ||
'\n\1' | ||
'\n\01' | ||
'\n\08' | ||
'\\\1' | ||
'\\\01' | ||
'\\\08' | ||
'\\n\1' | ||
'\01\02' | ||
'\02\01' | ||
'\01\2' | ||
'\2\01' | ||
'\08\1' | ||
'foo \1 bar \2' | ||
|
||
|
||
0; | ||
"foo \01 bar"; | ||
"foo \000 bar"; | ||
"foo \377 bar"; | ||
"foo \378 bar"; | ||
"foo \37a bar"; | ||
"foo \381 bar"; | ||
"foo \3a1 bar"; | ||
"foo \751 bar"; | ||
"foo \258 bar"; | ||
"foo \25a bar"; | ||
|
||
const o = { | ||
'\31': 0, | ||
}; |
Oops, something went wrong.