(thread: Thread, decoration: any)
| 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) |