Skip to content

Commit

Permalink
[Truffle] Fix mistakes in Hash#initialize.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Mar 9, 2015
1 parent 504f4a8 commit f9413dc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -675,15 +675,15 @@ public InitializeNode(InitializeNode prev) {
@Specialization
public RubyHash initialize(RubyHash hash, UndefinedPlaceholder defaultValue, UndefinedPlaceholder block) {
hash.setStore(null, 0, null, null);
hash.setDefaultBlock(null);
hash.setDefaultValue(null);
hash.setDefaultBlock(null);
return hash;
}

@Specialization
public RubyHash initialize(RubyHash hash, UndefinedPlaceholder defaultValue, RubyProc block) {
hash.setStore(null, 0, null, null);
hash.setDefaultBlock(null);
hash.setDefaultValue(null);
hash.setDefaultBlock(block);
return hash;
}
Expand Down

0 comments on commit f9413dc

Please sign in to comment.