diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-05-15 05:01:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 23:01:54 +0200 |
commit | b42f1ca8a4d574b087af9d86b7627a5817dad9b0 (patch) | |
tree | 091358662691eae7600676939a593b9eceef3439 /lib | |
parent | 0fcd838fd938a26ff9d032de71d5c78a1028e955 (diff) | |
download | Nim-b42f1ca8a4d574b087af9d86b7627a5817dad9b0.tar.gz |
fixes deprecation messages and adds missing commas (#23609)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/std/private/jsutils.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/private/jsutils.nim b/lib/std/private/jsutils.nim index fd1f395f3..5f79eab27 100644 --- a/lib/std/private/jsutils.nim +++ b/lib/std/private/jsutils.nim @@ -37,13 +37,13 @@ when defined(js): let a = array[2, float64].default assert jsConstructorName(a) == "Float64Array" assert jsConstructorName(a.toJs) == "Float64Array" - asm """`result` = `a`.constructor.name""" + {.emit: """`result` = `a`.constructor.name;""".} proc hasJsBigInt*(): bool = - asm """`result` = typeof BigInt != 'undefined'""" + {.emit: """`result` = typeof BigInt != 'undefined';""".} proc hasBigUint64Array*(): bool = - asm """`result` = typeof BigUint64Array != 'undefined'""" + {.emit: """`result` = typeof BigUint64Array != 'undefined';""".} proc getProtoName*[T](a: T): cstring {.importjs: "Object.prototype.toString.call(#)".} = runnableExamples: |