Skip to content

Commit 28f8fce

Browse files
committed
[GR-17457] Update Proc to match methods spec
PullRequest: truffleruby/2378
2 parents 165b85e + cf32d33 commit 28f8fce

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

spec/tags/truffle/methods_tags.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ fails:Public methods on Mutex should not include marshal_dump
5050
fails:Public methods on Thread should not include freeze
5151
fails:Public methods on Thread should include add_trace_func
5252
fails:Public methods on Thread should include set_trace_func
53-
fails:Public methods on Proc should not include block
54-
fails:Public methods on Proc should not include block=
55-
fails:Public methods on Proc should not include bound_method
56-
fails:Public methods on Proc should not include bound_method=
57-
fails:Public methods on Proc should not include ruby_method
58-
fails:Public methods on Proc should not include ruby_method=
59-
fails:Public methods on Proc should include hash
6053
fails:Public methods on MatchData should include hash
6154
fails:Public methods on Method should include clone
6255
fails:Public methods on Method should include original_name

src/main/ruby/truffleruby/core/proc.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636

3737
class Proc
38-
attr_accessor :block
39-
attr_accessor :bound_method
40-
attr_accessor :ruby_method
41-
38+
alias_method :hash, :hash
4239
alias_method :===, :call
4340

4441
def curry(curried_arity = nil)

0 commit comments

Comments
 (0)