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