ava 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/snapshot-manager.js +3 -1
- package/package.json +1 -1
package/lib/snapshot-manager.js
CHANGED
|
@@ -391,7 +391,9 @@ class Manager {
|
|
|
391
391
|
|
|
392
392
|
const resolveSourceFile = mem(file => {
|
|
393
393
|
const sourceMap = findSourceMap(file);
|
|
394
|
-
|
|
394
|
+
// Prior to Node.js 18.8.0, the value when a source map could not be found was `undefined`.
|
|
395
|
+
// This changed to `null` in <https://github.com/nodejs/node/pull/43875>. Check both.
|
|
396
|
+
if (sourceMap === undefined || sourceMap === null) {
|
|
395
397
|
return file;
|
|
396
398
|
}
|
|
397
399
|
|