1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[quickjs] Increased memory limit to 128MiB

This commit is contained in:
Witold Filipczyk 2024-10-08 16:14:27 +02:00
parent d29cad5bd0
commit c8d28d8558

View File

@ -287,8 +287,8 @@ quickjs_get_interpreter(struct ecmascript_interpreter *interpreter)
struct document_view *doc_view = vs->doc_view;
struct document *document = doc_view->document;
JS_SetMemoryLimit(interpreter->rt, 64 * 1024 * 1024);
JS_SetGCThreshold(interpreter->rt, 16 * 1024 * 1024);
JS_SetMemoryLimit(interpreter->rt, 128 * 1024 * 1024);
JS_SetGCThreshold(interpreter->rt, 32 * 1024 * 1024);
ctx = JS_NewContext(interpreter->rt);