12010-08-26 Oliver Hunt <oliver@apple.com>
2
3 Reviewed by NOBODY (OOPS!).
4
5 [JSC] JavaScript parsing error when loading Equifax web page
6 https://bugs.webkit.org/show_bug.cgi?id=42900
7
8 '-->' is ostensibly only meant to occur when there is only
9 whitespace preceeding it on the line. However firefox treats
10 multiline comments as a space character, so they are allowed.
11 One side effect of the firefox model is that any line terminators
12 inside the multiline comment are ignored, so
13
14 foo/*
15 */-->
16
17 is treated as
18
19 foo -->
20
21 and so '-->' will not be a comment in this case. Happily this simply
22 means that to fix this issue all we need to do is stop updating
23 m_atLineStart when handling multiline comments.
24
25 * parser/Lexer.cpp:
26 (JSC::Lexer::lex):
27