Properties
_exitPromise
_exitPromise: (resolve: any) => void
_makeFuncWrapper
_makeFuncWrapper: () => void
_nextCallbackTimeoutID
_nextCallbackTimeoutID: number
_pendingEvent
_pendingEvent: null | number
_resume
_resume: () => void
_scheduledTimeouts
_scheduledTimeouts: Map<any, any>
env
env: Record<string, any>
execWasmFn
execWasmFn: (fn: WasmHooks, fnArgs?: Array<string | number | boolean>) => Promise<any>
Type declaration
-
- (fn: WasmHooks, fnArgs?: Array<string | number | boolean>): Promise<any>
-
Parameters
-
fn: WasmHooks
-
Optional fnArgs: Array<string | number | boolean>
Returns Promise<any>
exit
exit: (code: number) => void
importObject
importObject: { go: { debug: (value: any) => void; runtime.clearTimeoutEvent: () => void; runtime.getRandomData: () => void; runtime.scheduleTimeoutEvent: () => void; runtime.walltime: () => void; runtime.wasmExit: () => void; runtime.wasmWrite: () => void; syscall/js.copyBytesToGo: () => void; syscall/js.copyBytesToJS: () => void; syscall/js.stringVal: () => void; syscall/js.valueCall: () => void; syscall/js.valueGet: () => void; syscall/js.valueIndex: () => void; syscall/js.valueInstanceOf: () => void; syscall/js.valueInvoke: () => void; syscall/js.valueLength: () => void; syscall/js.valueLoadString: () => void; syscall/js.valueNew: () => void; syscall/js.valuePrepareString: () => void; syscall/js.valueSet: () => void; syscall/js.valueSetIndex: () => void } }
Type declaration
-
go: { debug: (value: any) => void; runtime.clearTimeoutEvent: () => void; runtime.getRandomData: () => void; runtime.scheduleTimeoutEvent: () => void; runtime.walltime: () => void; runtime.wasmExit: () => void; runtime.wasmWrite: () => void; syscall/js.copyBytesToGo: () => void; syscall/js.copyBytesToJS: () => void; syscall/js.stringVal: () => void; syscall/js.valueCall: () => void; syscall/js.valueGet: () => void; syscall/js.valueIndex: () => void; syscall/js.valueInstanceOf: () => void; syscall/js.valueInvoke: () => void; syscall/js.valueLength: () => void; syscall/js.valueLoadString: () => void; syscall/js.valueNew: () => void; syscall/js.valuePrepareString: () => void; syscall/js.valueSet: () => void; syscall/js.valueSetIndex: () => void }
-
debug: (value: any) => void
-
runtime.clearTimeoutEvent: () => void
-
runtime.getRandomData: () => void
-
runtime.scheduleTimeoutEvent: () => void
-
runtime.walltime: () => void
-
runtime.wasmExit: () => void
-
runtime.wasmWrite: () => void
-
syscall/js.copyBytesToGo: () => void
-
syscall/js.copyBytesToJS: () => void
-
syscall/js.stringVal: () => void
-
syscall/js.valueCall: () => void
-
syscall/js.valueGet: () => void
-
syscall/js.valueIndex: () => void
-
syscall/js.valueInstanceOf: () => void
-
syscall/js.valueInvoke: () => void
-
syscall/js.valueLength: () => void
-
syscall/js.valueLoadString: () => void
-
syscall/js.valueNew: () => void
-
syscall/js.valuePrepareString: () => void
-
syscall/js.valueSet: () => void
-
syscall/js.valueSetIndex: () => void