diff options
author | konsumlamm <44230978+konsumlamm@users.noreply.github.com> | 2021-03-19 22:22:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 14:22:48 -0700 |
commit | 9997b42c3512d0422910704d6472c486efd4db19 (patch) | |
tree | 663ccfda25326043ad6bba137919ba3a4cc7bd4e /lib/std | |
parent | 430c30299f4c1cc5632d89c37487a78d4b4b3fde (diff) | |
download | Nim-9997b42c3512d0422910704d6472c486efd4db19.tar.gz |
Use importjs (#17422)
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/jsbigints.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/jsbigints.nim b/lib/std/jsbigints.nim index 21bb9e1a0..ccf14080b 100644 --- a/lib/std/jsbigints.nim +++ b/lib/std/jsbigints.nim @@ -3,8 +3,8 @@ when not defined(js): {.fatal: "Module jsbigints is designed to be used with the JavaScript backend.".} -type JsBigIntImpl {.importc: "bigint".} = int # https://github.com/nim-lang/Nim/pull/16606 -type JsBigInt* = distinct JsBigIntImpl ## Arbitrary precision integer for JavaScript target. +type JsBigIntImpl {.importjs: "bigint".} = int # https://github.com/nim-lang/Nim/pull/16606 +type JsBigInt* = distinct JsBigIntImpl ## Arbitrary precision integer for JavaScript target. func big*(integer: SomeInteger): JsBigInt {.importjs: "BigInt(#)".} = ## Constructor for `JsBigInt`. |