\n\r is not the same as \r\n.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jul 2017 19:50:00 +0000 (19:50 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jul 2017 19:50:00 +0000 (19:50 +0000)
commit6daf5a9cafd2ee3e356d434a824f547da563e7b7
treee1f173c46ab9c579ff3463817f798f29f8c8741a
parent4eb98e1f70b8122ac111bbaeda9c153f6f3159a5
\n\r is not the same as \r\n.
https://bugs.webkit.org/show_bug.cgi?id=173053

Reviewed by Keith Miller.

JSTests:

* stress/regress-173053.js: Added.
* stress/template-literal-line-terminators.js:

Source/JavaScriptCore:

* parser/Lexer.cpp:
(JSC::Lexer<T>::shiftLineTerminator):
(JSC::LineNumberAdder::add):

LayoutTests:

* js/parse-backslash-before-newline-expected.txt:
* js/script-tests/parse-backslash-before-newline.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/regress-173053.js [new file with mode: 0644]
JSTests/stress/template-literal-line-terminators.js
LayoutTests/ChangeLog
LayoutTests/js/parse-backslash-before-newline-expected.txt
LayoutTests/js/script-tests/parse-backslash-before-newline.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/parser/Lexer.cpp