From 5a6e8ebf66695da0c6885b2e9f8866e12012b33a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 13 Apr 2020 23:03:48 +0200 Subject: [PATCH] :art: Emit scoped func body --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 84d3ef4b..219921b2 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1788,7 +1788,7 @@ ANN static m_bool emit_func_def_body(const Emitter emit, const Func_Def fdef) { if(GET_FLAG(fdef, variadic)) stack_alloc(emit); if(fdef->d.code) - CHECK_BB(emit_stmt_code(emit, &fdef->d.code->d.stmt_code)) + CHECK_BB(scoped_stmt(emit, fdef->d.code, 1)) emit_func_def_ensure(emit, fdef); return GW_OK; } -- 2.43.0