JavaScript Runtime Options#
We use QuickJS JavaScript Engine for JavaScript execution. QuickJS runtime options can be updated with a proposal. A sample proposal would look like:
{
"actions": [
{
"name": "set_js_runtime_options",
"args": {
"max_heap_bytes": 1024,
"max_stack_bytes": 1024,
"max_execution_time_ms": 1200
}
}
]
}
Default values are max_heap_bytes = 100 * 1024 * 1024
, max_stack_bytes = 1024 * 1024
and max_execution_time_ms = 1000
.