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 Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
basicobject Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
binding Update to ruby/spec@e81b3cd 2019-03-28 14:22:29 +00:00
builtin_constants Use an exclusive range for ruby_version_is 2019-04-23 15:13:36 +09:00
class Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
comparable Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
complex Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
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 Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
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 Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
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 Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
float Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
gc Update to ruby/spec@cdd6ff7 2018-11-27 20:38:57 +00:00
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 Revert "using_spec.rb: skip broken test for MinGW for now" 2018-11-29 06:51:08 +00:00
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 Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
method Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
module Eagerly name modules and classes 2019-05-22 15:46:47 +09:00
mutex Update to ruby/spec@cdd6ff7 2018-11-27 20:38:57 +00:00
nil Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
numeric Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
objectspace Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
proc Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
process Add notes for the Process#clock_getres spec 2019-05-24 14:48:10 +02:00
queue Update to ruby/spec@cdd6ff7 2018-11-27 20:38:57 +00:00
random Update to ruby/spec@8b743a3 2018-10-27 10:48:40 +00:00
range Introduce beginless range [Feature#14799] 2019-04-03 08:11:41 +00:00
rational Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
regexp Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
signal Update to ruby/spec@6cf8ebe 2019-02-07 16:35:33 +00:00
sizedqueue Update to ruby/spec@cdd6ff7 2018-11-27 20:38:57 +00:00
string Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
struct Update to ruby/spec@7a16e01 2019-02-21 15:38:59 +00:00
symbol Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
systemexit Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
thread Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
threadgroup spec: add comments to re-enable specs for MinGW [ci skip] 2018-10-10 11:39:46 +00:00
time Add Time#ceil. 2019-05-23 22:30:19 +09:00
tracepoint Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
true Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
unboundmethod required paths are real paths 2018-03-05 01:57:27 +00:00
warning Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00