Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref')
-rw-r--r--deps/v8/test/mjsunit/harmony/weakrefs/finalizationregistry-and-weakref6
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;