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
I changed sysFatal from a template to an inline proc. This seems to trigger a bug in the JS backend with procs that take a typedesc:
type T =objectprocf(t: typedesc, s: string) =discardf(T, "foobar")
This produces wrong JS code for the proc call:
f_14013(,cstrToNimstr("foobar"));
Somehow the first argument in the AST ends up being something totally wrong. In the C backend it's just removed, but I'm not sure where that happens and why it doesn't happen in the JS backend.
related code in js:
The text was updated successfully, but these errors were encountered: