Compare commits
1 Commits
a6261fce7f
...
9bc514a782
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bc514a782 |
|
|
@ -278,13 +278,12 @@ export class Compiler {
|
|||
return bodyInstructions
|
||||
}
|
||||
|
||||
// If function has catch or finally, wrap body in try/catch/finally
|
||||
if (catchVariable || finallyBody) {
|
||||
// If function has catch or finally, wrap body in try/catch/finally
|
||||
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