ruby-changes:47757
From: mame <ko1@a...>
Date: Thu, 14 Sep 2017 11:54:01 +0900 (JST)
Subject: [ruby-changes:47757] mame:r59875 (trunk): ext/coverage/coverage.c: Fix the condition for non-experimental mode
mame 2017-09-14 11:53:54 +0900 (Thu, 14 Sep 2017) New Revision: 59875 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59875 Log: ext/coverage/coverage.c: Fix the condition for non-experimental mode Modified files: trunk/ext/coverage/coverage.c Index: ext/coverage/coverage.c =================================================================== --- ext/coverage/coverage.c (revision 59874) +++ ext/coverage/coverage.c (revision 59875) @@ -30,7 +30,7 @@ rb_coverage_start(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/ext/coverage/coverage.c#L30 if (!e || !*e) experimental_mode_enabled = 0; } - if (!experimental_mode_enabled) + if (!experimental_mode_enabled && argc != 0) rb_error_arity(argc, 0, 0); rb_scan_args(argc, argv, "01", &opt); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/