summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-09-30 13:21:46 +0200
committerAraq <rumpf_a@web.de>2019-09-30 13:21:46 +0200
commit63bcbea7000a8c54d82eb68c46e52990cf5ac73c (patch)
tree2d8fc609cab61245eeb0af5e1bd4a45cf0457eb7 /lib/js
parentc5a1149e0097cfd0e376013369312e57fc6a4caa (diff)
downloadNim-63bcbea7000a8c54d82eb68c46e52990cf5ac73c.tar.gz
JS: gensym is stricter for 'this'; refs #12246 [backport]
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/jsffi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/jsffi.nim b/lib/js/jsffi.nim
index c1b835ee9..479c8c3a8 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: