Jeremy Evans 39eadca76b Add FrozenError#receiver
Similar to NameError#receiver, this returns the object on which
the modification was attempted.  This is useful as it can pinpoint
exactly what is frozen.  In many cases when a FrozenError is
raised, you cannot determine from the context which object is
frozen that you attempted to modify.

Users of the current rb_error_frozen C function will have to switch
to using rb_error_frozen_object or the new rb_frozen_error_raise
in order to set the receiver of the FrozenError.

To allow the receiver to be set from Ruby, support an optional
second argument to FrozenError#initialize.

Implements [Feature #15751]
2019-05-26 11:09:21 -07:00
..
2019-05-18 09:41:22 +09:00
2019-02-08 02:54:21 +00:00
2019-03-12 12:04:03 +00:00
2019-05-23 14:39:16 +09:00
2019-05-26 11:09:21 -07:00
2018-12-17 05:57:15 +00:00
2019-04-18 21:56:55 +00:00
2019-04-26 09:33:48 +09:00
2019-05-26 18:47:52 +09:00
2019-04-26 09:33:48 +09:00
2019-04-25 00:52:16 +09:00
2019-04-27 21:26:42 +09:00
2019-01-11 01:18:59 +00:00
2019-05-23 22:30:19 +09:00