Add tests for WeakIdentifierMap and improve/simplify it
I added the tests to understand WeakIdentifieryMap behavior, e.g. whether the map entry will be automatically removed when the object is garbage collected, etc. The tests look also helpful for others. Also simplify WeakIdentifierMap by removing the non-garbage-collecting version which didn't look working. I tried that in test and the compiler reported error requiring the type to be garbage collected. Change-Id: Ic3f8d99d19d526d1a7a8e3940cf2e117323b9c20 Reviewed-on: https://chromium-review.googlesource.com/c/1435536 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#626145}
Showing
Please register or sign in to comment