mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 08:02:52 +00:00
LibJS: Lex single quote strings, escaped chars and unterminated strings
This commit is contained in:
parent
d439013903
commit
c0e6234219
Notes:
sideshowbarker
2024-07-19 08:19:00 +09:00
Author: https://github.com/sunverwerth
Commit: c0e6234219
Pull-request: https://github.com/SerenityOS/serenity/pull/1451
5 changed files with 33 additions and 4 deletions
7
Base/home/anon/js/strings.js
Normal file
7
Base/home/anon/js/strings.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
var d = "Double quoted string";
|
||||
var s = 'Single quoted string';
|
||||
var e = "Escaped characters \n \" \t \\"
|
||||
var u = "Unterminated string
|
||||
this is not possible in js"
|
||||
|
||||
var u2 = 'This is neither
|
Loading…
Add table
Add a link
Reference in a new issue