-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make caught exceptions less noisy, more accurate
* report hits only for uncaught exceptions * exceptions show up on all invocations from which they're thrown * an exception log only shows uncaught exceptions adobe-research/theseus#46
- Loading branch information
Showing
3 changed files
with
162 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
function foo() { | ||
function except() { throw 'lol' } | ||
function except() { throw 'foo' } | ||
|
||
function catches() { | ||
try { | ||
except(); | ||
} catch (e) { | ||
} | ||
} | ||
foo(); | ||
setTimeout(foo, 100); | ||
|
||
function doesNotCatch() { | ||
except(); | ||
} | ||
|
||
setTimeout(catches, 100); | ||
// setTimeout(doesNotCatch, 100); // the test harness can't handle this yet | ||
catches(); | ||
doesNotCatch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters