diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-10-20 03:59:13 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-10-20 03:59:13 +0900 |
| commit | 89a18e4f22de80b836f9d6c3167d71b7078a31bb (patch) | |
| tree | e16221399143312f3974d48d269c9bcc300195ce /src/codegen.c | |
| parent | 9bb6f0b3314d438e93ec79ae763ac57a559284bc (diff) | |
| download | mruby-89a18e4f22de80b836f9d6c3167d71b7078a31bb.tar.gz mruby-89a18e4f22de80b836f9d6c3167d71b7078a31bb.zip | |
unexpect break/next/redo/retry should raise LocalJumpError
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c index 19a5835fa..2482209cc 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -911,7 +911,7 @@ raise_error(codegen_scope *s, const char *msg) { int idx = new_lit(s, mrb_str_new_cstr(s->mrb, msg)); - genop(s, MKOP_ABx(OP_ERR, 0, idx)); + genop(s, MKOP_ABx(OP_ERR, 1, idx)); } static double |
