UNPKG
@cowasm/memfs
Version:
latest (3.5.1)
3.5.1
3.5.0
3.4.8
In-memory file-system with Node's fs API.
github.com/sagemathinc/memfs-js
sagemathinc/memfs-js
@cowasm/memfs
/
lib
/
getBigInt.js
6 lines
(5 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
6
if
(
typeof
BigInt
===
"function"
)
exports
.
default
=
BigInt
;
else
exports
.
default
=
function
BigIntNotSupported
(
) {
throw
new
Error
(
"BigInt is not supported in this environment."
); };