Commit ae283653 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge branch 'master' of github.com:mruby/mruby

parents e73a0913 399f88fa
......@@ -13,7 +13,7 @@ get_closure_irep(mrb_state *mrb, int level)
if (level == 0) {
return mrb->c->ci[-1].proc->body.irep;
}
while (--level) {
e = (struct REnv*)e->c;
if (!e) return NULL;
......
......@@ -1944,7 +1944,7 @@ mrb_mod_module_function(mrb_state *mrb, mrb_value mod)
int ai;
mrb_check_type(mrb, mod, MRB_TT_MODULE);
mrb_get_args(mrb, "*", &argv, &argc);
if(argc == 0) {
/* set MODFUNC SCOPE if implemented */
......
......@@ -528,7 +528,7 @@ assert('Module#module_function') do
def modfunc; end
module_function :modfunc
end
assert_true M.respond_to?(:modfunc)
end
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