diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-10-24 22:24:40 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-10-24 22:24:40 +0900 |
| commit | 85e34f1ca4714781e9ea648a32cc3fc1a8f256ba (patch) | |
| tree | 0308c957a5c5057e33dfb45f7bd38270d7abe190 | |
| parent | b4262972dc5b3dee9e8cdeda47d674d6f700518f (diff) | |
| download | mruby-85e34f1ca4714781e9ea648a32cc3fc1a8f256ba.tar.gz mruby-85e34f1ca4714781e9ea648a32cc3fc1a8f256ba.zip | |
Fix argument specs to `Exception`
| -rw-r--r-- | src/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c index 97a156687..43b09ec66 100644 --- a/src/error.c +++ b/src/error.c @@ -594,7 +594,7 @@ mrb_init_exception(mrb_state *mrb) mrb->eException_class = exception = mrb_define_class(mrb, "Exception", mrb->object_class); /* 15.2.22 */ MRB_SET_INSTANCE_TT(exception, MRB_TT_EXCEPTION); mrb_define_class_method(mrb, exception, "exception", mrb_instance_new, MRB_ARGS_OPT(1)); - mrb_define_method(mrb, exception, "exception", exc_exception, MRB_ARGS_ANY()); + mrb_define_method(mrb, exception, "exception", exc_exception, MRB_ARGS_OPT(1)); mrb_define_method(mrb, exception, "initialize", exc_initialize, MRB_ARGS_OPT(1)); mrb_define_method(mrb, exception, "to_s", exc_to_s, MRB_ARGS_NONE()); mrb_define_method(mrb, exception, "message", exc_message, MRB_ARGS_NONE()); |
