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
The following code is a minimal example that produces a Maximum call stack size exceeded error when compiled to JS and run from Node 16.15.1 or Chromium 116:
by this Nim code that was introduced in pull request #159:
when kstring iscstring:
proclen(a: kstring): int=# xxx: maybe move where kstring is defined# without this, `n.field.len` fails on js (non web) platformif a ==nil: 0else: a.len
It seems like a.len should be calling a version of length without the guard instead of it being recursive? Is that possible?
The text was updated successfully, but these errors were encountered:
Using Nim 2.0.0 on Windows 11
The following code is a minimal example that produces a
Maximum call stack size exceeded
error when compiled to JS and run from Node 16.15.1 or Chromium 116:and here's the offending recursive function that's produced:
by this Nim code that was introduced in pull request #159:
It seems like
a.len
should be calling a version of length without the guard instead of it being recursive? Is that possible?The text was updated successfully, but these errors were encountered: