Skip to content

Commit c9c0153

Browse files
committed
[truffle] Fix bug in binding to hash element
1 parent bbad2b7 commit c9c0153

File tree

1 file changed

+2
-1
lines changed
  • src/vm/jvm/runtime/org/perl6/nqp/truffle/runtime

1 file changed

+2
-1
lines changed

src/vm/jvm/runtime/org/perl6/nqp/truffle/runtime/NQPHash.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public Object atkey(String key) {
2929
}
3030

3131
public Object bindkey(String key, Object value) {
32-
return contents.put(key, value);
32+
contents.put(key, value);
33+
return value;
3334
}
3435

3536
public int existskey(String key) {

0 commit comments

Comments
 (0)