The following code results in execution being aborted without any message on the JS console: var x = <xml/>; Object.toString.apply(x); A try ... catch block doesn't change anything. The method should produce something meaningful instead or at least produce an exception.
Created attachment 190011 [details] Testcase This testcase should show a message box before and after calling Object.toString(). Instead, only the alert box before the call is displayed, despite the try ... catch block around the call.
Another ancient bug exposed by E4X's anti-traditional method hiding. /be
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta4
Created attachment 190060 [details] [diff] [review] never perpetrate a silent failure js_TryMethod and js_TryValueOf are all about being infallible predicates that suppress exceptions. This is a very old bug. /be
Comment on attachment 190060 [details] [diff] [review] never perpetrate a silent failure r=shaver. That's an old bug!
Attachment #190060 - Flags: review?(shaver) → review+
Status: ASSIGNED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
Checking in regress-301553.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-301553.js,v <-- regress-301553.js initial revision: 1.1
Flags: testcase? → testcase+
verified fixed 1.9 20060818 windows/mac*/linux
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.