* Executes Lua code from a string synchronously. * @param script - Lua script to execute. * @returns - The result returned by the Lua script.
(script: string)
| 80 | * @returns - The result returned by the Lua script. |
| 81 | */ |
| 82 | public doStringSync(script: string): any { |
| 83 | this.global.loadString(script) |
| 84 | const result = this.global.runSync() |
| 85 | return result[0] |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Executes Lua code from a file synchronously. |
no test coverage detected