File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/ruby/truffleruby/core Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ Bug fixes:
55
55
* Made ` Kernel#caller_locations ` accept a range argument, and return ` nil ` when appropriate.
56
56
* Made ` rb_respond_to ` work with primitives (#1869 , @chrisseaton ).
57
57
* Fixed issue with missing backtrace for ` rescue $ERROR_INFO ` (#1660 ).
58
+ * Fixed ` Struct#hash ` for ` keyword_init: true ` ` Struct ` .
58
59
59
60
Compatibility:
60
61
Original file line number Diff line number Diff line change @@ -309,7 +309,9 @@ def hash
309
309
val = TrufflePrimitive . vm_hash_start ( CLASS_SALT )
310
310
val = TrufflePrimitive . vm_hash_update ( val , size )
311
311
return val if Thread . detect_outermost_recursion self do
312
- _attrs . each { |var | TrufflePrimitive . vm_hash_update ( val , TrufflePrimitive . object_hidden_var_get ( self , var ) . hash ) }
312
+ _attrs . each do |var |
313
+ val = TrufflePrimitive . vm_hash_update ( val , TrufflePrimitive . object_hidden_var_get ( self , var ) . hash )
314
+ end
313
315
end
314
316
TrufflePrimitive . vm_hash_end ( val )
315
317
end
You can’t perform that action at this time.
0 commit comments