node/lib/internal/modules
bcoe eddde6c31a
errors: don't rekey on primitive type
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>
2021-06-21 21:48:23 -04:00
..
cjs errors: don't rekey on primitive type 2021-06-21 21:48:23 -04:00
esm module: fix legacy node specifier resolution to resolve "main" field 2021-06-13 19:38:01 -07:00
package_json_reader.js module: refactor to avoid unsafe array iteration 2021-01-06 11:30:18 +01:00
run_main.js lib: make primordials Promise methods safe 2021-06-14 08:17:31 +02:00