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

Method pushValue

src/type-extensions/null.ts:62–69  ·  view source on GitHub ↗
(thread: Thread, decoration: any)

Source from the content-addressed store, hash-verified

60
61 // any because LuaDecoration is not exported from the Lua lib.
62 public pushValue(thread: Thread, decoration: any): boolean {
63 if (decoration?.target !== null) {
64 return false
65 }
66 // Rather than pushing a new value, get the global "null" onto the stack.
67 thread.lua.lua_getglobal(thread.address, 'null')
68 return true
69 }
70
71 public close(): void {
72 this.thread.lua.module.removeFunction(this.gcPointer)

Callers 1

constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected