Open lastmjs opened 1 year ago
Thanks for reaching out! It looks like the stack overflow is occurring in the JS engine, which is causing js_of_ocaml to handle this error as shown above. It's possible that QuickJS doesn't make the same stack optimizations as V8 / Spidermonkey, so it could be worth trying to increase the stack size as explained on this webpage.
Let me know if you need any further support from the Languages team, and I'll post this in our Slack channel in case anyone has other suggestions for how to get moc.js
working in this environment.
I'm don't know how QuickJS is implemented, but if it manages its own stack, then growing the Rust stack might not be so relevant and you should instead/also use QuickJS's JS_SetMaxStackSize()
I'm trying to get this to run in our development version of Azle that uses QuickJS under-the-hood. Here's the output I get when I just try to
import mo from 'motoko/interpreter';
orimport mo from 'motoko';
I've tried to increase the Rust stack size, but no matter how large I make it I can't get around these errors.