Commit 42b7d75a authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

instance_eval should raise NotImplementedError on string argument

parent 328353b2
......@@ -582,7 +582,7 @@ mrb_obj_instance_eval(mrb_state *mrb, mrb_value self)
mrb_value a, b;
if (mrb_get_args(mrb, "|S&", &a, &b) == 1) {
mrb_raise(mrb, E_RUNTIME_ERROR, "instance_eval with string not implemented");
mrb_raise(mrb, E_NOTIMP_ERROR, "instance_eval with string not implemented");
}
return mrb_yield_with_self(mrb, b, 0, 0, self);
}
......
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