Set iterator and range detach operations to noop

Leave the housekeeping to the NSHashTable itself, which should purge
null-references automatically (not necessarily right away)

Also update tests accordingly: Use `allObjects.count` instead of simply
`count` on the NSHashTable, since `allObjects.count` returns non-null
references.

This should fix #36
This commit is contained in:
iska
2019-08-06 21:26:21 +02:00
parent 1dda2921fe
commit 153d48c19c
3 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -2112,10 +2112,10 @@
@autoreleasepool {
HTMLRange *range = [[HTMLRange alloc] initWithDocument:document];
[range cloneContents];
XCTAssertEqual(1, ranges.count);
XCTAssertEqual(1, ranges.allObjects.count);
}
XCTAssertEqual(0, ranges.count);
XCTAssertEqual(0, ranges.allObjects.count);
}
@end