Closed Bug 349624 Opened 18 years ago Closed 18 years ago

"let" in initial-value expression for another "let" causes assertion [@ js_Interpret]: "!fp->blockChain || OBJ_GET_PARENT(cx, obj) == fp->blockChain"

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: crash, testcase, verified1.8.1)

Crash Data

Attachments

(1 file)

Steps to reproduce:
  javascript:let(y = let (x) 4) 3

Result:
  Assertion failure: !fp->blockChain || OBJ_GET_PARENT(cx, obj) == fp->blockChain, at /Users/admin/trunk/mozilla/js/src/jsinterp.c:5920
Dup of bug 349605.  We can't nest scopes and pop the scope chain at compile time without doing the same at runtime.  But, we shouldn't open the outer scope early when there's no need to nest the inner one at runtime.

/be

*** This bug has been marked as a duplicate of 349605 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Reopening: bug 349605 is fixed but this still asserts.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: "let" in initial-value expression for another "let" causes assertion [@ js_Interpret] → "let" in initial-value expression for another "let" causes assertion [@ js_Interpret]: "!fp->blockChain || OBJ_GET_PARENT(cx, obj) == fp->blockChain"
Attached patch fixSplinter Review
Assignee: general → brendan
Status: REOPENED → ASSIGNED
Attachment #236181 - Flags: review?(mrbkap)
Attachment #236181 - Flags: review?(mrbkap) → review+
Flags: blocking1.8.1?
OS: Mac OS X 10.4 → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Attachment #236181 - Flags: approval1.8.1?
Fixed on trunk.

/be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Checking in regress-349624.js;
/cvsroot/mozilla/js/tests/js1_7/expressions/regress-349624.js,v  <--  regress-349624.js
initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.9 20060831 windows/mac*/linux
Status: RESOLVED → VERIFIED
Comment on attachment 236181 [details] [diff] [review]
fix

a=beltzner on behalf of 181drivers
Attachment #236181 - Flags: approval1.8.1? → approval1.8.1+
Flags: blocking1.8.1? → blocking1.8.1+
Fixed on the 1.8 branch.

/be
Blocks: js1.7let
Keywords: fixed1.8.1
verified fixed 1.8 2006090118 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

Created:
Updated:
Size: