QuickJsConfig
What a QuickJS engine takes on top of what every engine does.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
How deep, in bytes of native stack, a script may recurse before it gets a RangeError. It has to fit in the stack of the thread the engine runs on, with room left for the host's own frames: the default suits the 1 MiB a JVM or Android thread has, and a thread with a smaller stack, such as a secondary thread on iOS at 512 KiB, needs a smaller value. On JavaScript and WebAssembly the browser's own stack runs out first, so the limit there is 256 KiB at most, about 800 plain calls.
Link copied to clipboard
The most memory, in bytes, the engine may allocate. Past it an allocation fails and the call that made it throws a JsEngineError. Zero, the default, means no limit.
Link copied to clipboard