summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-20 20:43:27 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-20 20:43:27 +0900
commitef50e63a63c9b3759a2030816c9e2c5ec4e14cd0 (patch)
treea7d80c195f7421ca6dd3ebd6e1526aae1c18f420 /src/vm.c
parent6f22a61135fd077c1dcff2dec92ab215e3a83d79 (diff)
downloadmruby-ef50e63a63c9b3759a2030816c9e2c5ec4e14cd0.tar.gz
mruby-ef50e63a63c9b3759a2030816c9e2c5ec4e14cd0.zip
remove RuntimeError from mrb_state
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index c78799c6d..f3e5a497a 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1604,7 +1604,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
CASE(OP_ERR) {
/* Bx raise RuntimeError with message Lit(Bx) */
mrb_value msg = pool[GETARG_Bx(i)];
- mrb_value exc = mrb_exc_new3(mrb, mrb->eRuntimeError_class, msg);
+ mrb_value exc = mrb_exc_new3(mrb, E_RUNTIME_ERROR, msg);
mrb->exc = (struct RObject*)mrb_object(exc);
goto L_RAISE;