forget to re-initialize target_class for top-level eval; close #1418

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-07-30 01:33:02 +09:00
parent 961cd408a8
commit dbd36128ad
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@ typedef struct mrbc_context {
short lineno;
int (*partial_hook)(struct mrb_parser_state*);
void *partial_data;
struct RClass *target_class;
mrb_bool capture_errors:1;
mrb_bool dump_result:1;
mrb_bool no_exec:1;