diff options
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/unregister-when-cleanup-already-scheduled.js')
-rw-r--r-- | deps/v8/test/mjsunit/harmony/weakrefs/unregister-when-cleanup-already-scheduled.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/unregister-when-cleanup-already-scheduled.js b/deps/v8/test/mjsunit/harmony/weakrefs/unregister-when-cleanup-already-scheduled.js index 4ad4425a4c..5117997965 100644 --- a/deps/v8/test/mjsunit/harmony/weakrefs/unregister-when-cleanup-already-scheduled.js +++ b/deps/v8/test/mjsunit/harmony/weakrefs/unregister-when-cleanup-already-scheduled.js @@ -10,8 +10,8 @@ let cleanup = function(iter) { } let key = {"k": "this is my key"}; -let fg = new FinalizationGroup(cleanup); -// Create an object and register it in the FinalizationGroup. The object needs to be inside +let fg = new FinalizationRegistry(cleanup); +// Create an object and register it in the FinalizationRegistry. The object needs to be inside // a closure so that we can reliably kill them! (function() { @@ -25,7 +25,7 @@ let fg = new FinalizationGroup(cleanup); gc(); assertEquals(0, cleanup_call_count); -// Unregister the object from the FinalizationGroup before cleanup has ran. +// Unregister the object from the FinalizationRegistry before cleanup has ran. let success = fg.unregister(key); assertTrue(success); |