If an error is thrown before a module is loaded, we attempt to cache source map against error object, rather than module object. We can't do this if the error is a primitive type Fixes #38945 PR-URL: https://github.com/nodejs/node/pull/39025 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
8 lines
88 B
JavaScript
8 lines
88 B
JavaScript
/*
|
|
* comments dropped by uglify.
|
|
*/
|
|
function Hello() {
|
|
throw 'goodbye';
|
|
}
|
|
|
|
Hello();
|