Skip to content

Commit 51b070d

Browse files
committed
primjs: max stack size
1 parent dafe63c commit 51b070d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • test-app/runtime/src/main/cpp/napi/primjs

test-app/runtime/src/main/cpp/napi/primjs/jsr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ napi_status js_create_runtime(napi_runtime *runtime) {
1414
LEPUSRuntime* rt = LEPUS_NewRuntimeWithMode(0);
1515
LEPUS_SetRuntimeInfo(rt, "Lynx_LepusNG");
1616
_runtime->context = LEPUS_NewContext(rt);
17+
LEPUS_SetMaxStackSize(_runtime->context, 1024 * 1024 * 1024);
1718
_runtime->runtime = rt;
1819
*runtime = _runtime;
1920

0 commit comments

Comments
 (0)