Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8337fbc

Browse files
committedOct 31, 2014
[snapshot]
1 parent 011b18c commit 8337fbc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎opal/corelib/hash.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,11 @@ def delete(key, &block)
243243
khash = key;
244244
} else {
245245
map = self.map;
246-
khash = key.$hash;
246+
khash = key.$hash();
247247
}
248248
249+
result = map[khash];
250+
249251
if (result != null) {
250252
delete map[khash];
251253
self.keys.$delete(key);
@@ -562,14 +564,14 @@ def indexes(*keys)
562564

563565
alias indices indexes
564566

565-
`var inspect_ids = null`
567+
`var inspect_ids = {}`
566568
def inspect
567569
%x{
568570
var inspect = [],
569571
keys = self.keys
570572
_map = self.map,
571573
smap = self.smap,
572-
top = inspect_ids == null,
574+
top = inspect_ids === null,
573575
id = #{object_id},
574576
seen = '{...}';
575577

0 commit comments

Comments
 (0)
Please sign in to comment.