Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

@sms/executor-quickjs

Classes

QuickJSExecutor

Defined in: packages/drivers/executor/quickjs/src/index.ts:90

Implements

Constructors

Constructor
new QuickJSExecutor(opts?): QuickJSExecutor;

Defined in: packages/drivers/executor/quickjs/src/index.ts:94

Parameters
ParameterType
optsQuickJSExecutorOptions
Returns

QuickJSExecutor

Methods

load()
load(
   bundle, 
   host, 
   opts?
): Promise<ExecutorInstance>;

Defined in: packages/drivers/executor/quickjs/src/index.ts:108

Parameters
ParameterType
bundlePluginBundle
hostHostBridge
opts{ timeoutMs?: number; }
opts.timeoutMs?number
Returns

Promise<ExecutorInstance>

Implementation of

Executor.load

Interfaces

QuickJSExecutorOptions

Defined in: packages/drivers/executor/quickjs/src/index.ts:24

Properties

callTimeoutMs?
optional callTimeoutMs?: number;

Defined in: packages/drivers/executor/quickjs/src/index.ts:37

Overall timeout for a call into the plugin (activate, tool handler…). Default 10 000 ms.

maxStackBytes?
optional maxStackBytes?: number;

Defined in: packages/drivers/executor/quickjs/src/index.ts:33

Stack limit per plugin. Default 1 MiB.

memoryLimitBytes?
optional memoryLimitBytes?: number;

Defined in: packages/drivers/executor/quickjs/src/index.ts:31

Heap limit per plugin. Default 64 MiB.

sliceMs?
optional sliceMs?: number;

Defined in: packages/drivers/executor/quickjs/src/index.ts:35

CPU time one synchronous slice of guest code may take before it is interrupted. Default 2000 ms.

variant?
optional variant?: 
  | QuickJSSyncVariant
  | Promise<
  | QuickJSSyncVariant
  | {
  default: QuickJSSyncVariant;
}>;

Defined in: packages/drivers/executor/quickjs/src/index.ts:29

WASM variant. Default: the Node/browser file-based release build. On Cloudflare Workers pass import('@jitl/quickjs-singlefile-mjs-release-sync') (WASM inlined, no filesystem).