Automatic deref for everything but pointers in asm/emit (#8891)
Fixes #7249
This commit is contained in:
parent
c033ff990a
commit
af1e84f54d
5 changed files with 42 additions and 10 deletions
21
tests/js/t7249.nim
Normal file
21
tests/js/t7249.nim
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
discard """
|
||||
output: '''
|
||||
a -> 2
|
||||
a <- 2
|
||||
'''
|
||||
"""
|
||||
|
||||
import jsffi
|
||||
|
||||
var a = JsAssoc[cstring, int]{a: 2}
|
||||
|
||||
for z, b in a:
|
||||
echo z, " -> ", b
|
||||
|
||||
proc f =
|
||||
var a = JsAssoc[cstring, int]{a: 2}
|
||||
|
||||
for z, b in a:
|
||||
echo z, " <- ", b
|
||||
|
||||
f()
|
||||
Loading…
Add table
Add a link
Reference in a new issue