()
| 41 | } |
| 42 | |
| 43 | public newThread(): Thread { |
| 44 | const address = this.lua.lua_newthread(this.address) |
| 45 | if (!address) { |
| 46 | throw new Error('lua_newthread returned a null pointer') |
| 47 | } |
| 48 | return new Thread(this.lua, this.typeExtensions, address, this.parent || this) |
| 49 | } |
| 50 | |
| 51 | public resetThread(): void { |
| 52 | this.assertOk(this.lua.lua_resetthread(this.address)) |
no outgoing calls
no test coverage detected