summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-10-20 03:59:13 +0900
committerYukihiro Matsumoto <[email protected]>2012-10-20 03:59:13 +0900
commit89a18e4f22de80b836f9d6c3167d71b7078a31bb (patch)
treee16221399143312f3974d48d269c9bcc300195ce /src/codegen.c
parent9bb6f0b3314d438e93ec79ae763ac57a559284bc (diff)
downloadmruby-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.c2
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