From 1e97abec9665cf331adc9b273aea65944fea625b Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 30 Sep 2019 13:21:46 +0200 Subject: [PATCH] JS: gensym is stricter for 'this'; refs #12246 [backport] (cherry picked from commit 63bcbea7000a8c54d82eb68c46e52990cf5ac73c) --- lib/js/jsffi.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js/jsffi.nim b/lib/js/jsffi.nim index c1b835ee9f..479c8c3a89 100644 --- a/lib/js/jsffi.nim +++ b/lib/js/jsffi.nim @@ -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: