Skip to content

Commit 23bdaed

Browse files
committed
fixup! lib: cache source maps in vm sources
1 parent ff504b2 commit 23bdaed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/common/assertSnapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function replaceStackTrace(str, replacement = '$1*$7$8\n') {
2222
}
2323

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

2828
function replaceWindowsLineEndings(str) {

test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
Error: goodbye
77
at Hello (*/test/fixtures/source-map/uglify-throw-original.js:5:9)
88
at Immediate.<anonymous> (*/test/fixtures/source-map/uglify-throw-original.js:9:3)
9-
at process.processImmediate (node:internal/timers:478:21)
9+
*
1010

1111
Node.js *

test/fixtures/source-map/output/source_map_vm_module.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
ReferenceError: alert is not defined
77
at <anonymous> (*/test/fixtures/source-map/tabs.coffee:26:2)
88
at <anonymous> (*/test/fixtures/source-map/tabs.coffee:1:14)
9-
at SourceTextModule.evaluate (node:internal/vm/module:232:23)
9+
*
1010

1111
Node.js *

0 commit comments

Comments
 (0)