Bug 18232 - Exceptions thrown in setTimeOut not reported correctly in Console
Summary: Exceptions thrown in setTimeOut not reported correctly in Console
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-03-31 00:56 PDT by Jeremy Moskovich
Modified: 2008-07-20 05:45 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Moskovich 2008-03-31 00:56:27 PDT
Testcase:

setTimeout(function() {throw "Thrown from inside timeout";}, 10);
throw "Thrown from outside timeout";

Expected result:
After running the above code the console should show the following errors:
* "Thrown from outside timeout"
* "Thrown from inside timeout"

Actual Results:
The exception thrown from inside the timeout is displayed as "undefined" in the console.
Comment 1 Alexey Proskuryakov 2008-03-31 22:56:55 PDT
See also: bug 17470.
Comment 2 David Kilzer (:ddkilzer) 2008-05-02 15:27:49 PDT
<rdar://problem/5908157>
Comment 3 Oliver Hunt 2008-07-20 05:45:52 PDT
Fixed in r35253