mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fixing bug 291591
\<LineTerminator> in string literals is removed from the resulting string to follow SpiderMonkey and C/C++
This commit is contained in:
parent
b4b1da73a3
commit
5839d1a3e2
@ -574,6 +574,12 @@ class TokenStream
|
||||
}
|
||||
break;
|
||||
|
||||
case '\n':
|
||||
// Remove line terminator after escape to follow
|
||||
// SpiderMonkey and C/C++
|
||||
c = getChar();
|
||||
continue strLoop;
|
||||
|
||||
default:
|
||||
if ('0' <= c && c < '8') {
|
||||
int val = c - '0';
|
||||
|
Loading…
Reference in New Issue
Block a user