diff options
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref')
-rw-r--r-- | deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref b/deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref index 144b56fce72..274e714994d 100644 --- a/deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref +++ b/deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref @@ -5,12 +5,10 @@ // Flags: --harmony-weak-refs --expose-gc --noincremental-marking let cleanup_called = false; -let cleanup = function(iter) { +let cleanup = function(holdings) { assertFalse(cleanup_called); let holdings_list = []; - for (holdings of iter) { - holdings_list.push(holdings); - } + holdings_list.push(holdings); assertEquals(1, holdings_list.length); assertEquals("holdings", holdings_list[0]); cleanup_called = true; |