Closed
Bug 603849
Opened 14 years ago
Closed 14 years ago
JS Error stacktrace in nightlies differs from previous versions
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dchanm+bugzilla, Unassigned)
References
Details
Attachments
(1 file)
118 bytes,
text/html
|
Details |
The latest nightlies appear to be missing the top most stack frame when an exception is thrown. STR 1. Open test.html, it will open an alert with the stack Firefox 4.0b6 / 3.6.9 displays Error("foo")@:0 @file:///Users/dchan/test.html:5 Firefox 4.0b8pre displays @file:///Users/dchan/test.html:5
Updated•14 years ago
|
Assignee: general → xpconnect
Comment 1•14 years ago
|
||
This also bit Myk with iterators.
Comment 2•14 years ago
|
||
Aren't both of these bugs fallout from slow native removal? (That is, aren't they JS engine "bugs?").
Comment 3•14 years ago
|
||
Ah, right. Good point!
Comment 4•14 years ago
|
||
This change is indeed from slow-native removal: the error constructor no longer pushes a stack frame. This change in behavior was discussed ahead of time and considered acceptable. If there is a good reason, we could add a non-frame entry corresponding to the arguments of the error constructor.
Updated•14 years ago
|
Assignee: xpconnect → general
Comment 5•14 years ago
|
||
(In reply to comment #1) > This also bit Myk with iterators. Note: per my recent m.d.t.js-engine post <http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/c1d4b5bf54e47bb5#c193c2c1c4851e8b>, over in bug 597004 I implemented the workaround suggested by Donny Viszneki <http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/c1d4b5bf54e47bb5#77fbe60381c652aa> for the custom iterators in the Jetpack SDK.
You need to log in
before you can comment on or make changes to this bug.
Description
•