If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Components.Exception user data field turns JS Objects into nsISupports WNs

NEW
Unassigned

Status

()

Core
XPConnect
6 years ago
6 years ago

People

(Reporter: Bobby Holley (parental leave - send mail for anything urgent), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

STR:

var foo = Components.Exception('message', Components.results.NS_ERROR_FAILURE, null, {a: 42});

At this point, accessing foo.data just gives a raw nsISupports. It would be better if it could be smart, and at least give a double-wrapped object with a .wrappedJSObject property.

I don't plan on fixing this any time soon, but I wanted to have a bug on file.
You need to log in before you can comment on or make changes to this bug.