From 249fbf859b348bb715729f2ef12f682fa10287c1 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Wed, 11 Feb 2004 08:30:20 +0000 Subject: [PATCH] Fix Expression to stop on : only if hookLevel is not elevated. git-svn-id: svn://10.0.0.236/trunk@152663 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/narcissus/jsparse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/js/narcissus/jsparse.js b/mozilla/js/narcissus/jsparse.js index ddbe978cb2a..9a1c03e0630 100644 --- a/mozilla/js/narcissus/jsparse.js +++ b/mozilla/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;