-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This adds basic source map support. Since transpilation of dependencies is not merged yet, the `sourceMapCache` object and lookup is a little premature (since we will only ever have one file that we can apply apply source maps to).
- Loading branch information
1 parent
33b7918
commit 25a3cfd
Showing
4 changed files
with
29 additions
and
4 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
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,7 +1,13 @@ | ||
const test = require('../../'); | ||
|
||
test('throw an uncaught exception', t => { | ||
setImmediate(() => { | ||
throw new Error(`Can't catch me!`) | ||
}); | ||
setImmediate(foo); | ||
}); | ||
|
||
function foo() { | ||
bar(); | ||
} | ||
|
||
function bar() { | ||
throw new Error(`Can't catch me!`) | ||
} |