aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-error/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bun-error/index.tsx')
-rw-r--r--packages/bun-error/index.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/bun-error/index.tsx b/packages/bun-error/index.tsx
index a627a7a8d..5211af8ea 100644
--- a/packages/bun-error/index.tsx
+++ b/packages/bun-error/index.tsx
@@ -1390,6 +1390,7 @@ export function renderRuntimeError(error: Error) {
remapped[1];
}, console.error);
} else {
+ if (!mappings) return null;
var frame = exception.stack.frames[frameIndex];
const { line, column_start } = frame.position;
const remapped = remapPosition(mappings, line, column_start);