summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-08-23 20:25:26 +0300
committerGitHub <noreply@github.com>2023-08-23 19:25:26 +0200
commit03f267c8013eca2830eb3deadda73ed08096ec12 (patch)
tree6efec6bcb25cf9e6677c2ec00401988a2610e4d0 /tests/js
parent4f891aa50c298bcb81fc8859e2118b3118188720 (diff)
downloadNim-03f267c8013eca2830eb3deadda73ed08096ec12.tar.gz
make jsffi properly gensym (#22539)
fixes #21208
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tjsffi.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/js/tjsffi.nim b/tests/js/tjsffi.nim
index 2e57f70c1..b54d13e43 100644
--- a/tests/js/tjsffi.nim
+++ b/tests/js/tjsffi.nim
@@ -265,3 +265,9 @@ block: # test **
   doAssert to(`**`(a + a, b), int) == 2
 
   doAssert to(`**`(toJs(1) + toJs(1), toJs(2)), int) == 4
+
+block: # issue #21208
+  type MyEnum = enum baz
+  var obj: JsObject
+  {.emit: "`obj` = {bar: {baz: 123}}".}
+  discard obj.bar.baz