Replies: 2 comments 1 reply
-
I think it's reasonable for JS itself to use 256KB, but due to some wrong in backend-quickjs implementation, haven't called JS_UpdateStackTop to update the stack information. As a result, QuickJS's stack top continues to record the stack top at the time of the virtual machine's construction. If there are many calls made before invoking JS, it can easily lead to a stackoverflow. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Update quickjs backend to this version: https://github.com/puerts/backend-quickjs/releases/download/QJS_241030/qjs_v8_bin.tgz . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
256KB is abysmally low. Increasing it to something between 4MB to 10MB is more reasonable and prevents QuickJS users from encountering stack overflow errors too quickly.
Just something to consider.
Beta Was this translation helpful? Give feedback.
All reactions