@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
| Parameter | Type |
|---|---|
opts | QuickJSExecutorOptions |
Returns
Methods
load()
load(
bundle,
host,
opts?
): Promise<ExecutorInstance>;
Defined in: packages/drivers/executor/quickjs/src/index.ts:108
Parameters
| Parameter | Type |
|---|---|
bundle | PluginBundle |
host | HostBridge |
opts | { timeoutMs?: number; } |
opts.timeoutMs? | number |
Returns
Promise<ExecutorInstance>
Implementation of
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).