mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 16:57:36 +00:00
Bug #19980 - insist on curly-brace after catch block rather than just
accepting it - forces error that allows catch block to span lines for interactive input.
This commit is contained in:
parent
c506f95548
commit
741cf4ed39
@ -587,7 +587,8 @@ class Parser {
|
||||
nf.createCatch(varName, catchCond,
|
||||
statements(ts, source),
|
||||
ts.getLineno()));
|
||||
ts.matchToken(ts.RC);
|
||||
|
||||
mustMatchToken(ts, ts.RC, "msg.no.brace.after.body");
|
||||
source.append((char)ts.RC);
|
||||
source.append((char)ts.EOL);
|
||||
}
|
||||
|
@ -587,7 +587,8 @@ class Parser {
|
||||
nf.createCatch(varName, catchCond,
|
||||
statements(ts, source),
|
||||
ts.getLineno()));
|
||||
ts.matchToken(ts.RC);
|
||||
|
||||
mustMatchToken(ts, ts.RC, "msg.no.brace.after.body");
|
||||
source.append((char)ts.RC);
|
||||
source.append((char)ts.EOL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user