summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-09-09 13:14:32 +0900
committerYukihiro Matsumoto <[email protected]>2012-09-09 13:14:32 +0900
commit9e7ca5d94462c749b25a34bc2d23984ccd37d14d (patch)
tree12aab82d0fcc19ec57d54336d8c915d545994716 /src/error.c
parentfc52d2d6e076248c86525b30d9ea62ecfbcfb12e (diff)
downloadmruby-9e7ca5d94462c749b25a34bc2d23984ccd37d14d.tar.gz
mruby-9e7ca5d94462c749b25a34bc2d23984ccd37d14d.zip
mrb might be intialized incompletely from mrbc; close #457
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index 6d05a3c6c..1adf5cb05 100644
--- a/src/error.c
+++ b/src/error.c
@@ -407,4 +407,8 @@ mrb_init_exception(mrb_state *mrb)
mrb->eStandardError_class = mrb_define_class(mrb, "StandardError", mrb->eException_class); /* 15.2.23 */
mrb_define_class(mrb, "RuntimeError", mrb->eStandardError_class); /* 15.2.28 */
+
+ mrb_define_class(mrb, "RuntimeError", mrb->eStandardError_class); /* 15.2.28 */
+ e = mrb_define_class(mrb, "ScriptError", mrb->eException_class); /* 15.2.37 */
+ mrb_define_class(mrb, "SyntaxError", e); /* 15.2.38 */
}