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
fixes#16771
follow up #16536
Ideally it should be handled in the IR part in the future
I have also checked the double evaluation of `swap` in the JS runtime
#16779, that might be solved by a
copy flag or something. Well, it should be best solved in the IR so that
it doesn't bother backends anymore.
Example
Current Output
nim r main
vm:
(1,)
(1,)
(2,)
(2,)
rt:
(1,)
(2,)
nim r -b:js main
vm:
(1,)
(1,)
(2,)
(2,)
rt:
(1,)
(1,)
(2,)
(2,)
Expected Output
vm:
(1,)
(2,)
rt:
(1,)
(2,)
Additional Information
1.5.1 2b5841c
after #16778:
nim r -b:js main
vm:
(1,)
(1,)
(2,)
(2,)
rt:
(1,)
(1,)
so js+vm and c+vm are still broken after that PR
note that attempts to fix this in VM via
addr
runs into #16780The text was updated successfully, but these errors were encountered: