JS: gensym is stricter for 'this'; refs #12246 [backport]
This commit is contained in:
parent
c5a1149e00
commit
63bcbea700
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ macro bindMethod*(procedure: typed): auto =
|
|||
this = newIdentNode("this")
|
||||
# construct the `this` parameter:
|
||||
thisQuote = quote do:
|
||||
var `this` {.nodecl, importc.} : `thisType`
|
||||
var `this` {.nodecl, importc: "this".}: `thisType`
|
||||
call = newNimNode(nnkCall).add(rawProc[0], thisQuote[0][0][0])
|
||||
# construct the procedure call inside the method
|
||||
if args.len > 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue