diff options
| author | 2022-04-05 06:36:19 -0700 | |
|---|---|---|
| committer | 2022-04-05 06:36:19 -0700 | |
| commit | 70f9294e15d73f8f221116cee032db859a183112 (patch) | |
| tree | 80695a388fcb55c822241629386c8e29f672ca5d /packages/bun-error/sourcemap.ts | |
| parent | 2c0e8e0a99932fbf10872cce4ad417d24cdf262e (diff) | |
| download | bun-70f9294e15d73f8f221116cee032db859a183112.tar.gz bun-70f9294e15d73f8f221116cee032db859a183112.tar.zst bun-70f9294e15d73f8f221116cee032db859a183112.zip | |
[bun:error] Fix exception
Diffstat (limited to 'packages/bun-error/sourcemap.ts')
| -rw-r--r-- | packages/bun-error/sourcemap.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/bun-error/sourcemap.ts b/packages/bun-error/sourcemap.ts index 23bd4cf8a..bee83f559 100644 --- a/packages/bun-error/sourcemap.ts +++ b/packages/bun-error/sourcemap.ts @@ -281,7 +281,7 @@ export function fetchAllMappings(files, signal) { for (const [file, indices] of [...map.entries()]) { const mapped = fetchMappings(file, signal); - if (mapped.then) { + if (mapped?.then) { var resolvers = []; for (let i = 0; i < indices.length; i++) { results[indices[i]] = new Promise((resolve, reject) => { |
