mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
add timeout and memory limit
This commit is contained in:
@@ -25,7 +25,7 @@ extern "C"
|
||||
|
||||
DLLEXPORT JSValue *jsNULL();
|
||||
|
||||
DLLEXPORT JSRuntime *jsNewRuntime(JSChannel channel);
|
||||
DLLEXPORT JSRuntime *jsNewRuntime(JSChannel channel, int64_t timeout);
|
||||
|
||||
DLLEXPORT uint32_t jsNewClass(JSContext *ctx, const char *name);
|
||||
|
||||
@@ -35,6 +35,8 @@ extern "C"
|
||||
|
||||
DLLEXPORT void jsSetMaxStackSize(JSRuntime *rt, size_t stack_size);
|
||||
|
||||
DLLEXPORT void jsSetMemoryLimit(JSRuntime *rt, size_t limit);
|
||||
|
||||
DLLEXPORT void jsFreeRuntime(JSRuntime *rt);
|
||||
|
||||
DLLEXPORT JSValue *jsNewCFunction(JSContext *ctx, JSValue *funcData);
|
||||
|
Reference in New Issue
Block a user