Closed Bug 352640 Opened 18 years ago Closed 18 years ago

Crash [@ js_LexicalLookup] with do..while, with, let

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: crash, testcase)

Crash Data

js> new Function("do { with({}) let x; let b; } while( 1 );")                  
Assertion failure: scopeStmt, at jsparse.c:3570

js> new Function("do { with({}) let x; var b; } while( 1 );")
Crash [@ js_LexicalLookup]

js> new Function("do { with({}) let x; [2 for each (b in [])]; } while( 1 );")
Crash [@ js_LexicalLookup]
Also:

js> new Function("switch(w) { case 2: with({}) let y; case 3: }")
Seems like a null deref in opt builds.  Odd that the second one in comment 0 crashes in debug but not in opt, though.
WFM on trunk (even without the "destructuring decompilation" (v5d) patch from bug 346642).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Flags: in-testsuite?
/cvsroot/mozilla/js/tests/js1_7/regress/regress-352640-01.js,v  <--  regress-352640-01.js
initial revision: 1.1

/cvsroot/mozilla/js/tests/js1_7/regress/regress-352640-02.js,v  <--  regress-352640-02.js
initial revision: 1.1

/cvsroot/mozilla/js/tests/js1_7/regress/regress-352640-03.js,v  <--  regress-352640-03.js
initial revision: 1.1

/cvsroot/mozilla/js/tests/js1_7/regress/regress-352640-04.js,v  <--  regress-352640-04.js
initial revision: 1.1
Flags: in-testsuite? → in-testsuite+
Crash Signature: [@ js_LexicalLookup]
You need to log in before you can comment on or make changes to this bug.