Skip to content

Commit

Permalink
fixup! lib: cache source maps in vm sources
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Mar 24, 2024
1 parent ff504b2 commit 23bdaed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/common/assertSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function replaceStackTrace(str, replacement = '$1*$7$8\n') {
}

function replaceInternalStackTrace(str) {
return str.replaceAll(/(\W+).*node:internal\/modules.*/g, '$1*');
return str.replaceAll(/(\W+).*node:internal.*/g, '$1*');
}

function replaceWindowsLineEndings(str) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
Error: goodbye
at Hello (*/test/fixtures/source-map/uglify-throw-original.js:5:9)
at Immediate.<anonymous> (*/test/fixtures/source-map/uglify-throw-original.js:9:3)
at process.processImmediate (node:internal/timers:478:21)
*

Node.js *
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
ReferenceError: alert is not defined
at <anonymous> (*/test/fixtures/source-map/tabs.coffee:26:2)
at <anonymous> (*/test/fixtures/source-map/tabs.coffee:1:14)
at SourceTextModule.evaluate (node:internal/vm/module:232:23)
*

Node.js *

0 comments on commit 23bdaed

Please sign in to comment.