| ... | ... | @@ -4493,6 +4493,10 @@ static IrInstruction *ir_gen_builtin_fn_call(IrBuilder *irb, Scope *scope, AstNo |
| 4493 | 4493 | case BuiltinFnIdFrameAddress: |
| 4494 | 4494 | return ir_lval_wrap(irb, scope, ir_build_frame_address(irb, scope, node), lval); |
| 4495 | 4495 | case BuiltinFnIdHandle: |
| 4496 | if (!irb->exec->fn_entry) { |
| 4497 | add_node_error(irb->codegen, node, buf_sprintf("@handle() called outside of function definition")); |
| 4498 | return irb->codegen->invalid_instruction; |
| 4499 | } |
| 4496 | 4500 | if (!is_async) { |
| 4497 | 4501 | add_node_error(irb->codegen, node, buf_sprintf("@handle() in non-async function")); |
| 4498 | 4502 | return irb->codegen->invalid_instruction; |