Compare commits
1 Commits
9bc514a782
...
a6261fce7f
| Author | SHA1 | Date | |
|---|---|---|---|
| a6261fce7f |
|
|
@ -278,12 +278,13 @@ export class Compiler {
|
|||
return bodyInstructions
|
||||
}
|
||||
|
||||
if (catchVariable || finallyBody) {
|
||||
// If function has catch or finally, wrap body in try/catch/finally
|
||||
if (catchVariable || finallyBody) {
|
||||
instructions.push(
|
||||
...this.#compileTryCatchFinally(compileFunctionBody, catchVariable, catchBody, finallyBody, input)
|
||||
)
|
||||
} else {
|
||||
// Normal function without catch/finally
|
||||
instructions.push(...compileFunctionBody())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user