From 44b64e726ec4aa9076d2d69e88c5d593131f8ee3 Mon Sep 17 00:00:00 2001 From: Jake Leahy Date: Wed, 6 Dec 2023 14:59:38 +1100 Subject: Don't recurse into inner functions during asyncjs transform (#23036) Closes #13341 --- tests/js/tasyncjs.nim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/js') 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() -- cgit 1.4.1-2-gfad0