* Executes Lua code from a string asynchronously. * @param script - Lua script to execute. * @returns A Promise that resolves to the result returned by the Lua script execution.
(script: string)
| 62 | * @returns A Promise that resolves to the result returned by the Lua script execution. |
| 63 | */ |
| 64 | public doString(script: string): Promise<any> { |
| 65 | return this.callByteCode((thread) => thread.loadString(script)) |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Executes Lua code from a file asynchronously. |
no test coverage detected