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

Method getStackValues

src/thread.ts:172–181  ·  view source on GitHub ↗
(start = 0)

Source from the content-addressed store, hash-verified

170 }
171
172 public getStackValues(start = 0): MultiReturn {
173 const returns = this.getTop() - start
174 const returnValues = new MultiReturn(returns)
175
176 for (let i = 0; i < returns; i++) {
177 returnValues[i] = this.getValue(start + i + 1)
178 }
179
180 return returnValues
181 }
182
183 public stateToThread(L: LuaState): Thread {
184 return L === this.parent?.address ? this.parent : new Thread(this.lua, this.typeExtensions, L, this.parent || this)

Callers 3

runMethod · 0.95
runSyncMethod · 0.95
callMethod · 0.95

Calls 2

getTopMethod · 0.95
getValueMethod · 0.95

Tested by

no test coverage detected