Closed Bug 349283 Opened 18 years ago Closed 18 years ago

"let" statement in "with" block crashes [@ js_Interpret]

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: mrbkap)

References

Details

(Keywords: crash, testcase, verified1.8.1)

Crash Data

Attachments

(3 files, 1 obsolete file)

This crashes Firefox: with({b:2}) { let c = 3; }
Attached file testcase
Attached patch FixSplinter Review
Argh! We fixed PushLexicalScope, but not its inlining in the let declaration case.
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #234549 - Flags: review?(brendan)
OS: Mac OS X 10.4 → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Comment on attachment 234549 [details] [diff] [review] Fix Oy. I didn't remember the inlining. Mebbe we should macroize the node init code? This would be a safe pick-up for beta 2. /be
Attachment #234549 - Flags: review?(brendan)
Attachment #234549 - Flags: review+
Attachment #234549 - Flags: approval1.8.1?
Oops, nm the beta 2 talk -- this regressed only on the trunk. /be
Blocks: js1.7let
Flags: blocking1.8.1?
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attached patch More let fixing (obsolete) — Splinter Review
let expressions were broken too.
Attachment #234554 - Flags: review?(brendan)
Attachment #234554 - Attachment is obsolete: true
Attachment #234557 - Flags: review?(brendan)
Attachment #234554 - Flags: review?(brendan)
Comment on attachment 234557 [details] [diff] [review] Better more let fixing Yay, thanks. /be
Attachment #234557 - Flags: review?(brendan) → review+
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Fixed on trunk, I checked in for Blake so he could get some sleep. /be
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
*** Bug 349290 has been marked as a duplicate of this bug. ***
Flags: blocking1.8.1? → blocking1.8.1+
Comment on attachment 234549 [details] [diff] [review] Fix Clearing the flag based on comment 4. Please re-nom if that is not correct.
Attachment #234549 - Flags: approval1.8.1?
Flags: blocking1.8.1+
I'm actually going to renominate this per mrbkap -- for 1.8.1final -- since although the changes that caused this haven't yet landed on the 1.8 branch, they're supposed to land there before final.
Flags: blocking1.8.1?
Checking in regress-349283.js; /cvsroot/mozilla/js/tests/js1_7/block/regress-349283.js,v <-- regress-349283.js initial revision: 1.1
Flags: in-testsuite+
Flags: blocking1.8.1? → blocking1.8.1+
verified fixed 1.9 20060824 windows/mac*/linux
Status: RESOLVED → VERIFIED
So does this need to land on 1.8.1?
This landed as part of the deferred landing of lexical and destructuring catch variables, bug 336379. /be
Keywords: fixed1.8.1
verified fixed 1.8 20060914 windows/mac 1.9 20060914 windows/mac*/linux
Crash Signature: [@ js_Interpret]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: