Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 93bbaa0

Browse filesBrowse files
guybedfordtargos
authored andcommitted
module: fix ERR_REQUIRE_ESM error for null frames
PR-URL: #39593 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 6c769cc commit 93bbaa0
Copy full SHA for 93bbaa0

2 files changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/errors.js‎

Copy file name to clipboardExpand all lines: lib/internal/errors.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ function hideInternalStackFrames(error) {
808808
if (typeof stackFrames === 'object') {
809809
frames = ArrayPrototypeFilter(
810810
stackFrames,
811-
(frm) => !StringPrototypeStartsWith(frm.getFileName(),
811+
(frm) => !StringPrototypeStartsWith(frm.getFileName() || '',
812812
'node:internal')
813813
);
814814
}
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
require('./package-type-module/cjs.js');
1+
eval("require('./package-type-module/cjs.js')");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.