diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-10-25 08:21:53 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-25 08:21:53 +0900 |
| commit | 39a0a25f2092842b5c89820badd6ceac943142b0 (patch) | |
| tree | 0308c957a5c5057e33dfb45f7bd38270d7abe190 /src | |
| parent | b4262972dc5b3dee9e8cdeda47d674d6f700518f (diff) | |
| parent | 85e34f1ca4714781e9ea648a32cc3fc1a8f256ba (diff) | |
| download | mruby-39a0a25f2092842b5c89820badd6ceac943142b0.tar.gz mruby-39a0a25f2092842b5c89820badd6ceac943142b0.zip | |
Merge pull request #4788 from shuujii/fix-argument-specs-to-Exception
Fix argument specs to `Exception`
Diffstat (limited to 'src')
| -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()); |
