mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Fix Expression to stop on : only if hookLevel is not elevated.
This commit is contained in:
parent
f3068c76bf
commit
70d3411bc0
@ -714,7 +714,8 @@ function Expression(t, x, stop) {
|
||||
loop:
|
||||
while ((tt = t.get()) != END) {
|
||||
if (tt == stop &&
|
||||
x.bracketLevel == bl && x.curlyLevel == cl && x.parenLevel == pl) {
|
||||
x.bracketLevel == bl && x.curlyLevel == cl && x.parenLevel == pl &&
|
||||
x.hookLevel == hl) {
|
||||
// Stop only if tt matches the optional stop parameter, and that
|
||||
// token is not quoted by some kind of bracket.
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user