We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cebf21d commit 38126eeCopy full SHA for 38126ee
lib/internal/test_runner/test.js
@@ -14,6 +14,7 @@ const {
14
Number,
15
NumberPrototypeToFixed,
16
ObjectDefineProperty,
17
+ ObjectKeys,
18
ObjectSeal,
19
Promise,
20
PromisePrototypeThen,
@@ -560,7 +561,7 @@ class Test extends AsyncResource {
560
561
const map = lazyFindSourceMap(this.loc.file);
562
const entry = map?.findEntry(this.loc.line - 1, this.loc.column - 1);
563
- if (entry !== undefined) {
564
+ if (entry !== undefined && ObjectKeys(entry).length > 0) {
565
this.loc.line = entry.originalLine + 1;
566
this.loc.column = entry.originalColumn + 1;
567
this.loc.file = entry.originalSource;
0 commit comments