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

Method runSync

src/thread.ts:147–151  ·  view source on GitHub ↗
(argCount = 0)

Source from the content-addressed store, hash-verified

145 }
146
147 public runSync(argCount = 0): MultiReturn {
148 const base = this.getTop() - argCount - 1 // The 1 is for the function to run
149 this.assertOk(this.lua.lua_pcallk(this.address, argCount, LUA_MULTRET, 0, 0, null) as LuaReturn)
150 return this.getStackValues(base)
151 }
152
153 public pop(count = 1): void {
154 this.lua.lua_pop(this.address, count)

Callers 2

doStringSyncMethod · 0.80
doFileSyncMethod · 0.80

Calls 3

getTopMethod · 0.95
assertOkMethod · 0.95
getStackValuesMethod · 0.95

Tested by

no test coverage detected