Skip to content

Commit 2985bd0

Browse files
committed
stringify bigints for console dupe detection
1 parent fbcca03 commit 2985bd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/repl/src/lib/Output/srcdoc/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@
155155
return { type: 'Set', value };
156156
}
157157

158+
// if we don't handle bigints separately, they will cause JSON.stringify to blow up
159+
if (typeof value === 'bigint') {
160+
return { type: 'BigInt', value: value + '' };
161+
}
162+
158163
return value;
159164
});
160165
} catch (error) {

0 commit comments

Comments
 (0)