Closed Bug 303720 Opened 19 years ago Closed 7 years ago

XPConnect sometimes stomps on a pending JS exception

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: brendan, Unassigned)

References

()

Details

(Keywords: helpwanted)

Attachments

(1 file)

I found this while debugging bug 303163.  In that case, a syntax error exception
thrown by the compiler was pending, but nsEventListenerManager code called from
nsDOMClassInfo.cpp's nsEventReceiverSH::RegisterCompileHandler took that JS
error and turned it into NS_ERROR_FAILURE, which XPConnect's
XPC_WN_Helper_NewResolve then wrapped into a new exception via Throw(rv, cx). 
That stomped the pending JS error.

/be
I'd have thought that something like this would work, but this makes no errors
at all appear.	If I keep returning NS_ERROR_FAILURE, then I do get those
errors, but the first syntax error is still eaten by something...
Keywords: helpwanted
Assignee: dbradley → nobody
QA Contact: pschwartau → xpconnect
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: