Closed DiThi closed 1 year ago
Can confirm. On a fresh install of Nim 1.6.12, Windows 10, installed the package via nimble install nimx
Using the code available on the main page, compiling with nim js test.nim
, it fails with the above error.
Yes, js support is no longer a goal since wasm is superior in all ways. Sorry this was not communicated earlier.
JS mode is broken since commit 7cda4e15f03a379bf40f88263fbcdcf95d199c16.
Steps to reproduce:
nim js
or in any official way.Result with 7cda4e15f03a379bf40f88263fbcdcf95d199c16:
Result with head:
Result with head after adding
{.gcsafe.}
to that proc and init in js_canvas_window.nim:These changes to use .gcsafe. should probably have a condition for JS, or some way to tell the compile to ignore those altogether.
There's no difference with
--threads:off
and barely any change by using nim devel instead of stable.