mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
JS: gensym is stricter for 'this'; refs #12246 [backport]
(cherry picked from commit 63bcbea700)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user