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)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: dchanm+bugzilla, Unassigned)

References

Details

Attachments

(1 file)

Attached file test case
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
Assignee: general → xpconnect
This also bit Myk with iterators.
Aren't both of these bugs fallout from slow native removal? (That is, aren't they JS engine "bugs?").
Ah, right. Good point!
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.
Assignee: xpconnect → general
(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.
Great
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: