We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c769cc commit 93bbaa0Copy full SHA for 93bbaa0
lib/internal/errors.js
@@ -808,7 +808,7 @@ function hideInternalStackFrames(error) {
808
if (typeof stackFrames === 'object') {
809
frames = ArrayPrototypeFilter(
810
stackFrames,
811
- (frm) => !StringPrototypeStartsWith(frm.getFileName(),
+ (frm) => !StringPrototypeStartsWith(frm.getFileName() || '',
812
'node:internal')
813
);
814
}
test/fixtures/es-modules/cjs-esm.js
@@ -1 +1 @@
1
-require('./package-type-module/cjs.js');
+eval("require('./package-type-module/cjs.js')");
0 commit comments