1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
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
..
argf Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
array
basicobject
binding
builtin_constants
class
comparable
complex
dir Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
encoding Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
enumerable Adding Enumerable#filter_map 2019-05-23 14:39:16 +09:00
enumerator
env Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
exception Add FrozenError#receiver 2019-05-26 11:09:21 -07:00
false
fiber Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
file Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
filetest
float Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
gc
hash spec/ruby/core/hash/constructor_spec.rb: add "ruby_version_is" guard 2019-05-23 01:46:21 +09:00
integer Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
io Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
kernel Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
main
marshal Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
matchdata Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
math
method
module Eagerly name modules and classes 2019-05-22 15:46:47 +09:00
mutex
nil
numeric
objectspace Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
proc
process Add notes for the Process#clock_getres spec 2019-05-24 14:48:10 +02:00
queue
random
range
rational
regexp Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
signal
sizedqueue
string Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
struct
symbol
systemexit
thread Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
threadgroup
time Add Time#ceil. 2019-05-23 22:30:19 +09:00
tracepoint
true
unboundmethod
warning