diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-04-27 02:50:42 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-04-27 02:50:42 +0900 |
| commit | 5c25a9a6a98f22a848784cb3e4bb5234dc76ec24 (patch) | |
| tree | 759b40728cc534af92054c8e897605cf2a102583 /src/vm.c | |
| parent | f1164487e1427c40e3a10ef0902a5905acc5f08a (diff) | |
| download | mruby-5c25a9a6a98f22a848784cb3e4bb5234dc76ec24.tar.gz mruby-5c25a9a6a98f22a848784cb3e4bb5234dc76ec24.zip | |
C++ compilation failed due to skipping iniitalization by goto out_super
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1224,7 +1224,7 @@ RETRY_TRY_BLOCK: if (mid == 0) { mrb_value exc; - out_super: + exc = mrb_exc_new_str_lit(mrb, E_NOMETHOD_ERROR, "super called outside of method"); mrb->exc = mrb_obj_ptr(exc); goto L_RAISE; @@ -1313,7 +1313,11 @@ RETRY_TRY_BLOCK: else { struct REnv *e = uvenv(mrb, lv-1); if (!e) { - goto out_super; + mrb_value exc; + + exc = mrb_exc_new_str_lit(mrb, E_NOMETHOD_ERROR, "super called outside of method"); + mrb->exc = mrb_obj_ptr(exc); + goto L_RAISE; } stack = e->stack + 1; } |
