From 21c42f8b37a679f6ea03f09a426f539fdb663441 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 25 Nov 2019 01:33:55 +0100 Subject: [PATCH] :art: Reset memoize on each ast --- src/emit/emit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emit/emit.c b/src/emit/emit.c index 8b52a7c3..c253eab8 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2021,6 +2021,7 @@ ANN static inline m_bool emit_ast_inner(const Emitter emit, Ast ast) { ANN m_bool emit_ast(const Env env, Ast ast) { const Emitter emit = env->gwion->emit; + emit->info->memoize = 0; emit->code = new_code(emit, emit->env->name); emit_push_scope(emit); const m_bool ret = emit_ast_inner(emit, ast); -- 2.43.0