You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling to JS, compiling a nested proc to the vm does not work like in the example. This is strage, because compiling to JS should not affect if I can compile something to the VM.
Example
nim js -r scratch.nim
procfoo() =var i =0procbar() =inc i
bar()
echo i
foo()
static:
foo()
Current Output
/tmp/scratch.nim(4, 9) Error: cannot evaluate at compile time: i
When compiling to JS, compiling a nested proc to the vm does not work like in the example. This is strage, because compiling to JS should not affect if I can compile something to the VM.
Example
nim js -r scratch.nim
Current Output
Expected Output
Additional Information
Compiling with
nim c -r scratch.nim
shows no errors at all.This is importat, because my refactoring of the json.to macro test requires this to work.
Nim/tests/stdlib/tjsonmacro.nim
Line 299 in 6bfa4eb
The text was updated successfully, but these errors were encountered: