Platform/JS Compartments Mochitest: Difference between revisions

m
Line 176: Line 176:
</pre>
</pre>


The first problem in test_cows.xul is simply that the error message isn't what's expected. I tried fixing this by calling DoThrowException, just like the existing XPCChromeObjectWrapper code did -- but strangely this caused the exception not to be readable at all. I can see why why the exception thrown by DoThrowException would be restricted so that the caller couldn't read it, but I don't understand why exceptions thrown by JS_ReportError aren't affected too. --jto, 10/4/2010
The first problem in test_cows.xul is simply that the error message isn't what's expected. I tried fixing this by calling DoThrowException, just like the existing XPCChromeObjectWrapper code did -- but strangely this caused the exception not to be readable at all. I can see why why the exception thrown by DoThrowException would be rewrapped so that the caller couldn't read it, but I don't understand why exceptions thrown by JS_ReportError aren't affected in the same way. --jto, 10/4/2010


= Browserchrome =
= Browserchrome =
638

edits