* Executes Lua code from a file asynchronously. * @param filename - Path to the Lua script file. * @returns - A Promise that resolves to the result returned by the Lua script execution.
(filename: string)
| 71 | * @returns - A Promise that resolves to the result returned by the Lua script execution. |
| 72 | */ |
| 73 | public doFile(filename: string): Promise<any> { |
| 74 | return this.callByteCode((thread) => thread.loadFile(filename)) |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Executes Lua code from a string synchronously. |
no test coverage detected