MCPcopy Create free account
hub / github.com/ceifa/wasmoon / createEngine

Method createEngine

src/factory.ts:82–84  ·  view source on GitHub ↗

* Creates a Lua engine with the specified options. * @param [options] - Configuration options for the Lua engine. * @returns - A Promise that resolves to a new LuaEngine instance.

(options: CreateEngineOptions = {})

Source from the content-addressed store, hash-verified

80 * @returns - A Promise that resolves to a new LuaEngine instance.
81 */
82 public async createEngine(options: CreateEngineOptions = {}): Promise<LuaEngine> {
83 return new LuaEngine(await this.getLuaModule(), options)
84 }
85
86 /**
87 * Gets the Lua WebAssembly module.

Callers 13

createEngineFunction · 0.95
engine.test.jsFile · 0.80
luatests.jsFile · 0.80
getEngineFunction · 0.80
filesystem.test.jsFile · 0.80
startWasmoonFunction · 0.80
runHeapsortFunction · 0.80
runInteropedHeapsortFunction · 0.80
insertComplexObjectsFunction · 0.80

Calls 1

getLuaModuleMethod · 0.95

Tested by

no test coverage detected