Closed
Bug 347674
Opened 18 years ago
Closed 18 years ago
ReferenceError thrown when accessing exception bound in a catch block in a try block within that catch block
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: Waldo, Assigned: brendan)
Details
(Keywords: verified1.8.1)
Attachments
(2 files)
2.70 KB,
text/plain
|
Details | |
997 bytes,
patch
|
mrbkap
:
review+
shaver
:
review+
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
Testcase coming in a second...
Reporter | ||
Comment 1•18 years ago
|
||
Assignee | ||
Comment 2•18 years ago
|
||
Recent regression, from patch for bug 343765. The bug is that block depth for a with object must be stack index of object named in with statement head, not one more than that index. This matches block depth for a block (scope) object, which is the index of the first local in the block (empty blocks are never generated). So the condition for popping block and with objects from the scope chain in the JSOP_SETSP case as patched for bug 343765, OBJ_BLOCK_DEPTH(cx, obj) < i (not <= i) is correct. The bug is that the "block depth" given to with objects in the case for JSOP_ENTERWITH is off by one (too high). Must fix for 1.8.1/fx2/js1.7 -- basic ECMA conformance, core language runtime semantics must be correct. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #232503 -
Flags: review?(mrbkap)
Attachment #232503 -
Flags: approval1.8.1?
Assignee | ||
Comment 3•18 years ago
|
||
Comment on attachment 232503 [details] [diff] [review] fix mrbkap out of town still, looking for r=shaver -- he knows this code (and the JSOP_SETSP code) too. /be
Attachment #232503 -
Flags: review?(shaver)
Comment on attachment 232503 [details] [diff] [review] fix sr=shaver
Attachment #232503 -
Flags: review?(shaver) → review+
Assignee | ||
Comment 5•18 years ago
|
||
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: blocking1.8.1?
Resolution: --- → FIXED
Comment 6•18 years ago
|
||
Checking in regress-347674.js; /cvsroot/mozilla/js/tests/js1_5/Exceptions/regress-347674.js,v <-- regress-347674.js initial revision: 1.1 with edits for bug number and contributor.
Flags: in-testsuite+
Comment 7•18 years ago
|
||
Comment on attachment 232503 [details] [diff] [review] fix a=drivers
Attachment #232503 -
Flags: approval1.8.1? → approval1.8.1+
Updated•18 years ago
|
Attachment #232503 -
Flags: review?(mrbkap) → review+
Comment 9•18 years ago
|
||
verified fixed 1.9 win/mac(ppc|tel)/linux 20060808
Status: RESOLVED → VERIFIED
Comment 10•18 years ago
|
||
verified fixed 1.8 20060809 mac(ppc|tel)/linux. Unfortunately I don't have windows test results for 20060809 1.8, but verifying anyway.
Keywords: fixed1.8.1 → verified1.8.1
Assignee | ||
Updated•18 years ago
|
Flags: blocking1.8.1?
You need to log in
before you can comment on or make changes to this bug.
Description
•