Open TelephoneTan opened 1 week ago
Any minimal code snippet to reproduce it? Does this only happen on iOS? Have you tried to increase maxStackSize
to a larger number?
If this still only happens on iOS, it might be a bug I can't solve on Windows.
how to set maxStackSize
?
You can try:
quickJs.maxStackSize = 512 * 1024 // Or something larger, defaults to 256 KB
It works! But I am quite worried is it abnormal to exhaust the default stack size?
I'm not familiar with quickjs's stack size but I think this is okay, Zipline also uses a large stack size (6 MB): https://github.com/cashapp/zipline/blob/55aa20f5b4cdae3753e92535afe41c670f851b1a/zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt#L202