▲ | tipiirai 3 days ago | ||||||||||||||||||||||||||||
The exact error is "Maximum call stack size exceeded" when the WASM- engine is replaced with this JS engine: https://github.com/nuejs/nue/blob/master/packages/examples/s... There is currently no demo about the crash, but you can setup this locally. | |||||||||||||||||||||||||||||
▲ | uasi 3 days ago | parent | next [-] | ||||||||||||||||||||||||||||
`events.push(...arr)` puts all arguments on the call stack before calling the method, which causes the error. Don't push tens of thousands of items at once. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | jeffhuys 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
You're solving a problem nobody has. If you encounter this problem, you shouldn't think "ah, let's yeet the JS engine because it clearly isn't good enough for my awesome SPA", you should think "hm, maybe I shouldn't render 10000000000 records in the DOM". What's next? "Oh I have a memory leak, let's get a subscription on RAM modules and just keep adding them!" | |||||||||||||||||||||||||||||
▲ | 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
[deleted] | |||||||||||||||||||||||||||||
▲ | 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
[deleted] |