Skip to content

Commit 3f3efef

Browse files
committed
feat: improve serialize-javascript
1 parent 86e1b30 commit 3f3efef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils/serialize-javascript.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ const TypedArrays = [
5858
Uint32Array,
5959
Float32Array,
6060
Float64Array,
61-
BigInt64Array,
62-
BigUint64Array,
63-
];
61+
typeof BigInt64Array !== 'undefined' ? BigInt64Array : undefined!,
62+
typeof BigUint64Array !== 'undefined' ? BigUint64Array : undefined!,
63+
].filter(Boolean);
6464

6565
/**
6666
* Serialize JavaScript object to string, support functions. Should including all fields of both

0 commit comments

Comments
 (0)