Closed Bug 350529 Opened 18 years ago Closed 18 years ago

x--' causes "Assertion failure: ts->lookahead < NTOKENS_MASK" [@ js_UngetToken]

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: mrbkap)

Details

(Keywords: crash, testcase, verified1.8.1)

Crash Data

Attachments

(1 file)

Steps to reproduce:
  In a debug build,
  javascript:x--'

Result:
  Assertion failure: ts->lookahead < NTOKENS_MASK 
  jsscan.c:2080 [@ js_UngetToken]

Expected:
  "Unterminated string literal" error.
Did the fix for bug 350415 regress this?

/be
I can't reproduce this in any js shell, trunk, 1.8 branch, 1.8.0 branch.  Jesse, Bob: can either of you?

/be
Yes, I can reproduce in trunk js shell.

> ~/trunk/mozilla/js/src/Darwin_DBG.OBJ admin$ ./js
js> x--'
Assertion failure: ts->lookahead < NTOKENS_MASK, at jsscan.c:2080
Abort trap
Attached patch fixSplinter Review
Jesse, can you test this?  It matches the change made for bug 350415.

/be
Attachment #235878 - Flags: review?(mrbkap)
Assignee: general → mrbkap
I should have seen this -- I did protest that the change for bug 350415 was gonna break something, playing Cassandra a bit.  This needs to go in for 1.8 to fix the regression that the patch for bug 350415 landed there yesterday.

/be
Flags: blocking1.8.1?
This patch fixes the bug for me.
Comment on attachment 235878 [details] [diff] [review]
fix

I thought about this, but managed to convince myself that this code already looked like this.
Attachment #235878 - Flags: review?(mrbkap) → review+
Attachment #235878 - Flags: approval1.8.1?
Fixed on trunk.

/be
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: blocking1.8.1? → blocking1.8.1+
Comment on attachment 235878 [details] [diff] [review]
fix

a=schrep for drivers.
Attachment #235878 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch.

/be
Keywords: fixed1.8.1
Checking in regress-350529.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-350529.js,v  <--  regress-350529.js
initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.8, 1.9 20060830 windows/mac*/linux also passes in 1.8.0.7
Status: RESOLVED → VERIFIED
Crash Signature: [@ js_UngetToken]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: