Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/internal/source_map/source_map_cache.js
Co-authored-by: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Benjamin E. Coe and Trott authored Jun 13, 2021
commit 0b67b1e8310c6b62166d9835bbeff3b446c3a8fb
2 changes: 1 addition & 1 deletion lib/internal/source_map/source_map_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function sourcesToAbsolute(baseURL, data) {
// Move source map from garbage collected module to alternate key.
function rekeySourceMap(cjsModuleInstance, newInstance) {
const sourceMap = cjsSourceMapCache.get(cjsModuleInstance);
// If an exception occurs before a module finishes loading it will removed
// If an exception occurs before a module finishes loading, it is removed
// from the module cache and our WeakMap. To allow a source map to still be
// applied to the stack trace when this happens, we rekey on the thrown error.
// This is only possible if the error is an object and not a primitive type.
Expand Down