fixes #23487; JS chckNilDisp is wrong (#23490)

fixes #23487 

uses JSRef
This commit is contained in:
ringabout
2024-04-13 22:37:37 +08:00
committed by GitHub
parent 5d2a712b0e
commit bcc935ae6a

View File

@@ -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")