quickjs-emscripten • quickjs-emscripten • Readme | Exports
quickjs-emscripten / quickjs-emscripten / TestQuickJSWASMModule
A test wrapper of QuickJSWASMModule that keeps a reference to each context or runtime created.
Call disposeAll to reset these sets and calls dispose
on any left alive
(which may throw an error).
Call assertNoMemoryAllocated at the end of a test, when you expect that you've freed all the memory you've ever allocated.
Pick
<QuickJSWASMModule
, keyofQuickJSWASMModule
>
new TestQuickJSWASMModule(
parent
):TestQuickJSWASMModule
• parent: QuickJSWASMModule
packages/quickjs-emscripten-core/src/module-test.ts:21
contexts:
Set
<QuickJSContext
>
packages/quickjs-emscripten-core/src/module-test.ts:19
runtimes:
Set
<QuickJSRuntime
>
packages/quickjs-emscripten-core/src/module-test.ts:20
assertNoMemoryAllocated():
void
void
packages/quickjs-emscripten-core/src/module-test.ts:62
disposeAll():
void
void
packages/quickjs-emscripten-core/src/module-test.ts:51
evalCode(
code
,options
?):unknown
• code: string
• options?: ModuleEvalOptions
unknown
Pick.evalCode
packages/quickjs-emscripten-core/src/module-test.ts:47
getWasmMemory():
Memory
Memory
Pick.getWasmMemory
packages/quickjs-emscripten-core/src/module-test.ts:79
newContext(
options
?):QuickJSContext
• options?: ContextOptions
Pick.newContext
packages/quickjs-emscripten-core/src/module-test.ts:35
newRuntime(
options
?):QuickJSRuntime
• options?: RuntimeOptions
Pick.newRuntime
packages/quickjs-emscripten-core/src/module-test.ts:23
Generated using typedoc-plugin-markdown and TypeDoc