thanks @alaviss for the test
This commit is contained in:
parent
ffe4328b35
commit
17db15f9b1
3 changed files with 21 additions and 2 deletions
|
|
@ -1513,8 +1513,8 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
|||
# reference with the value `nil`, so `isNil` should be false!
|
||||
(node.kind == nkNilLit and nfIsRef notin node.flags) or
|
||||
(not node.typ.isNil and node.typ.kind == tyProc and
|
||||
node.typ.callConv == ccClosure and node[0].kind == nkNilLit and
|
||||
node[1].kind == nkNilLit))
|
||||
node.typ.callConv == ccClosure and node.safeLen > 0 and
|
||||
node[0].kind == nkNilLit and node[1].kind == nkNilLit))
|
||||
of opcNBindSym:
|
||||
# cannot use this simple check
|
||||
# if dynamicBindSym notin c.config.features:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue