This commit is contained in:
flywind 2021-03-09 19:22:26 +08:00 • committed by GitHub
commit cc37fee0ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View file

@ -37,3 +37,7 @@ when defined(js):
asm """`result` = typeof BigUint64Array != 'undefined'"""
proc getProtoName*[T](a: T): cstring {.importjs: "Object.prototype.toString.call(#)".}
proc isInteger*[T](x: T): bool {.importjs: "Number.isInteger(#)".}
proc isSafeInteger*[T](x: T): bool {.importjs: "Number.isSafeInteger(#)".}