summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2023-12-06 14:59:38 +1100
committerGitHub <noreply@github.com>2023-12-06 04:59:38 +0100
commit44b64e726ec4aa9076d2d69e88c5d593131f8ee3 (patch)
treeb6654c4645b5bcab0ab02fe9b93b8dfdd17da286 /tests/js
parentd20b4d5168780b9c6a3bd2fde28b171cb7414c98 (diff)
downloadNim-44b64e726ec4aa9076d2d69e88c5d593131f8ee3.tar.gz
Don't recurse into inner functions during asyncjs transform (#23036)
Closes #13341
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tasyncjs.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/js/tasyncjs.nim b/tests/js/tasyncjs.nim
index 3de143643..f3b273c44 100644
--- a/tests/js/tasyncjs.nim
+++ b/tests/js/tasyncjs.nim
@@ -99,4 +99,9 @@ block asyncPragmaInType:
   proc foo() {.async.} = discard
   var x: Handler = foo
 
+block: # 13341
+  proc f {.async.} =
+    proc g: int =
+      result = 123
+
 discard main()