(
key: CacheKey,
executeParameters: ExecutableExecutionOptions,
)
| 106 | } |
| 107 | |
| 108 | override async handleInterpreting( |
| 109 | key: CacheKey, |
| 110 | executeParameters: ExecutableExecutionOptions, |
| 111 | ): Promise<CompilationResult> { |
| 112 | if (!this.interpreterExe) { |
| 113 | return super.handleInterpreting(key, executeParameters); |
| 114 | } |
| 115 | // `compiler.exe` points at luac for compilation; swap it to the lua |
| 116 | // interpreter for the duration of the script run. |
| 117 | const originalExe = this.compiler.exe; |
| 118 | this.compiler.exe = this.interpreterExe; |
| 119 | try { |
| 120 | return await super.handleInterpreting(key, executeParameters); |
| 121 | } finally { |
| 122 | this.compiler.exe = originalExe; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | override async processAsm(result: {asm: string}) { |
| 127 | // luac listing format (Lua 5.x): |
nothing calls this directly
no outgoing calls
no test coverage detected