mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
LibJS: Unescape strings in Token::string_value()
This commit is contained in:
parent
644b4f4201
commit
3389021291
Notes:
sideshowbarker
2024-07-19 08:18:38 +09:00
Author: https://github.com/sunverwerth
Commit: 3389021291
Pull-request: https://github.com/SerenityOS/serenity/pull/1453
2 changed files with 59 additions and 9 deletions
|
@ -1,7 +1,12 @@
|
|||
var d = "Double quoted string";
|
||||
var s = 'Single quoted string';
|
||||
var e = "Escaped characters \n \" \t \\"
|
||||
var d = "Double quoted string\n";
|
||||
print(d);
|
||||
var s = 'Single quoted string\n';
|
||||
print(s)
|
||||
var e = "Escaped characters \b \f \n \r \t \v \' \" \\ \n";
|
||||
print(e)
|
||||
var u = "Unterminated string
|
||||
this is not possible in js"
|
||||
this is not possible in js\n";
|
||||
print(u);
|
||||
|
||||
var u2 = 'This is neither
|
||||
var u2 = 'This is neither\n
|
||||
print(u2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue