ruby-changes:60432
From: Nobuyoshi <ko1@a...>
Date: Tue, 17 Mar 2020 19:51:07 +0900 (JST)
Subject: [ruby-changes:60432] 165e457236 (master): Check if `freeze` option is given
https://git.ruby-lang.org/ruby.git/commit/?id=165e457236 From 165e4572363f964e28cfdc51fe26de6728a5c174 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 17 Mar 2020 19:46:03 +0900 Subject: Check if `freeze` option is given diff --git a/object.c b/object.c index 0f5650e..69a9fd0 100644 --- a/object.c +++ b/object.c @@ -432,7 +432,7 @@ freeze_opt(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/object.c#L432 rb_scan_args(argc, argv, "0:", &opt); if (!NIL_P(opt)) { rb_get_kwargs(opt, keyword_ids, 0, 1, &kwfreeze); - ret = obj_freeze_opt(kwfreeze); + if (kwfreeze != Qundef) ret = obj_freeze_opt(kwfreeze); } return ret; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/