Skip to content

target_class should not be TT_ICLASS in instance_eval(string); ref #1152#2599

Merged
matz merged 1 commit into
mruby:masterfrom
SatoshiOdawara:fix_target_class_in_instance_eval
Sep 30, 2014
Merged

target_class should not be TT_ICLASS in instance_eval(string); ref #1152#2599
matz merged 1 commit into
mruby:masterfrom
SatoshiOdawara:fix_target_class_in_instance_eval

Conversation

@SatoshiOdawara
Copy link
Copy Markdown
Contributor

when mrb_funcall called instance_eval(string), mrb->c->ci->target_class doesn't modified.

mrb_funcall(mrb, mrb_obj_value(mrb->kernel_module), "instance_eval", 1, "class Foo; end");
// ==> TypeError: #<Kernel:0x8a256a0> is not a class/module

target_class should not be TT_ICLASS. ref #1152

matz added a commit that referenced this pull request Sep 30, 2014
…ance_eval

target_class should not be TT_ICLASS in instance_eval(string); ref #1152
@matz matz merged commit 3e3048d into mruby:master Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants