diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-04-13 22:37:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 16:37:37 +0200 |
commit | bcc935ae6a2fe4748241c0f0f01df611981a94a8 (patch) | |
tree | c65838c9858e85a6fb8a84d5d5b6bf2731bef234 /lib | |
parent | 5d2a712b0eb9caefac0a008c7b9551ddeeab9e0f (diff) | |
download | Nim-bcc935ae6a2fe4748241c0f0f01df611981a94a8.tar.gz |
fixes #23487; JS chckNilDisp is wrong (#23490)
fixes #23487 uses JSRef
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/jssys.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index fb9481ffd..ffd23b12d 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -508,7 +508,7 @@ proc absInt64(a: int64): int64 {.compilerproc.} = proc nimMin(a, b: int): int {.compilerproc.} = return if a <= b: a else: b proc nimMax(a, b: int): int {.compilerproc.} = return if a >= b: a else: b -proc chckNilDisp(p: pointer) {.compilerproc.} = +proc chckNilDisp(p: JSRef) {.compilerproc.} = if p == nil: sysFatal(NilAccessDefect, "cannot dispatch; dispatcher is nil") |