mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Fix bug:
var passed = true; try { eval("/* mello /* yello */"); } catch (e) { print(e); passed = false; } print(passed); should print "true", not "false".
This commit is contained in:
parent
3c7580a23b
commit
4ed02f7b8a
@ -1232,15 +1232,9 @@ public class TokenStream {
|
||||
return getToken();
|
||||
}
|
||||
if (in.match('*')) {
|
||||
while ((c = in.read()) != -1
|
||||
&& !(c == '*' && in.match('/'))) {
|
||||
if (c == '\n') {
|
||||
} else if (c == '/' && in.match('*')) {
|
||||
if (in.match('/'))
|
||||
return getToken();
|
||||
reportSyntaxError("msg.nested.comment", null);
|
||||
return ERROR;
|
||||
}
|
||||
while ((c = in.read()) != -1 &&
|
||||
!(c == '*' && in.match('/'))) {
|
||||
; // empty loop body
|
||||
}
|
||||
if (c == EOF_CHAR) {
|
||||
reportSyntaxError("msg.unterminated.comment", null);
|
||||
|
@ -434,9 +434,6 @@ msg.unterminated.string.lit =\
|
||||
msg.oct.esc.too.large =\
|
||||
octal escape too large
|
||||
|
||||
msg.nested.comment =\
|
||||
nested comment
|
||||
|
||||
msg.unterminated.comment =\
|
||||
unterminated comment
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user