-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unsafe "j" interpolation (#6068)
* Deprecate unsafe ``` j`$(a)$(b)` ``` interpolation * Remove unsafe "j" string interpolation. * Update CHANGELOG.md * Convert printexec and arg to .res * Remove deprecated module `Printexc` * Update artifacts.txt * arg: use string interpolation * Convert caml_format_test to .res * Convert chn_test to .res * Convert gpr_3142 test to .res * Convert inline_const test to .res * Convert inline_const_test * Convert mario_game test to .res * Convert. sexp test to .res * artifacts * ninja: add pervasives for .res(i) files too * cleanup ninja
- Loading branch information
1 parent
9fb5a89
commit e0c869a
Showing
63 changed files
with
4,059 additions
and
4,295 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
9 changes: 9 additions & 0 deletions
9
jscomp/build_tests/super_errors/expected/jinterp.res.expected
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,9 @@ | ||
|
||
[1;31mWe've found a bug for you![0m | ||
[36m/.../fixtures/jinterp.res[0m:[2m3:10-21[0m | ||
|
||
1 [2m│[0m | ||
2 [2m│[0m let a = 11 | ||
[1;31m3[0m [2m│[0m let b = j[1;31m`number $(a)[0m` | ||
|
||
The unsafe j`$(a)$(b)` interpolation was removed, use string template `${a}${b}` instead. |
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 @@ | ||
|
||
let a = 11 | ||
let b = j`number $(a)` |
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
Oops, something went wrong.