QuickJsRuntime2 constructor

QuickJsRuntime2({
  1. _JsModuleHandler? moduleHandler,
  2. int stackSize = 1024 * 1024,
  3. int? timeout,
  4. int? memoryLimit = kDefaultJsMemoryLimit,
  5. _JsHostPromiseRejectionHandler? hostPromiseRejectionHandler,
  6. bool autoExecutePendingJobs = true,
})

Implementation

QuickJsRuntime2({
  this.moduleHandler,
  this.stackSize = 1024 * 1024,
  this.timeout,
  int? memoryLimit = kDefaultJsMemoryLimit,
  this.hostPromiseRejectionHandler,
  this.autoExecutePendingJobs = true,
}) : memoryLimit = normalizeJsMemoryLimit(memoryLimit) {
  this.init();
}