Commit 8ea0e9d5 authored by mattn's avatar mattn

Call compile method to override to memolize instances

parent 2838fcf2
......@@ -1932,7 +1932,7 @@ codegen(codegen_scope *s, node *tree, int val)
pop();
}
pop();
sym = new_sym(s, mrb_intern(s->mrb, "new"));
sym = new_sym(s, mrb_intern(s->mrb, "compile"));
genop(s, MKOP_ABC(OP_SEND, cursp(), sym, n));
mrb_gc_arena_restore(s->mrb, ai);
push();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment