diff --git a/js/narcissus/jsparse.js b/js/narcissus/jsparse.js index ddbe978cb2a7..9a1c03e0630b 100644 --- a/js/narcissus/jsparse.js +++ b/js/narcissus/jsparse.js @@ -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;