JS: gensym is stricter for 'this'; refs #12246 [backport]

This commit is contained in:
Araq
2019-09-30 13:21:46 +02:00
parent c5a1149e00
commit 63bcbea700

View File

@@ -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: