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

Method setField

src/thread.ts:97–101  ·  view source on GitHub ↗
(index: number, name: string, value: unknown)

Source from the content-addressed store, hash-verified

95 }
96
97 public setField(index: number, name: string, value: unknown): void {
98 index = this.lua.lua_absindex(this.address, index)
99 this.pushValue(value)
100 this.lua.lua_setfield(this.address, index, name)
101 }
102
103 public async run(argCount = 0, options?: Partial<LuaThreadRunOptions>): Promise<MultiReturn> {
104 const originalTimeout = this.timeout

Callers 2

engine.test.jsFile · 0.80
luatests.jsFile · 0.80

Calls 1

pushValueMethod · 0.95

Tested by

no test coverage detected