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

Method doString

src/engine.ts:64–66  ·  view source on GitHub ↗

* Executes Lua code from a string asynchronously. * @param script - Lua script to execute. * @returns A Promise that resolves to the result returned by the Lua script execution.

(script: string)

Source from the content-addressed store, hash-verified

62 * @returns A Promise that resolves to the result returned by the Lua script execution.
63 */
64 public doString(script: string): Promise<any> {
65 return this.callByteCode((thread) => thread.loadString(script))
66 }
67
68 /**
69 * Executes Lua code from a file asynchronously.

Callers 6

engine.test.jsFile · 0.80
promises.test.jsFile · 0.80
filesystem.test.jsFile · 0.80
runInteropedHeapsortFunction · 0.80
getComplexObjectsFunction · 0.80

Calls 2

callByteCodeMethod · 0.95
loadStringMethod · 0.80

Tested by

no test coverage detected