add option to change max stack size.

This commit is contained in:
ekibun
2021-01-03 21:47:14 +08:00
parent d7224dd840
commit e8ba97011a
9 changed files with 41 additions and 5 deletions

View File

@@ -16,7 +16,9 @@ This plugin is a simple js engine for flutter using the `quickjs` project with `
Firstly, create a `FlutterQjs` object, then call `dispatch` to dispatch event loop:
```dart
final engine = FlutterQjs()
final engine = FlutterQjs(
stackSize: 1024 * 1024, // change stack size here.
);
engine.dispatch();
```