diff options
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome-after-unregister.js')
-rw-r--r-- | deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome-after-unregister.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome-after-unregister.js b/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome-after-unregister.js index 697c926a82e..cdced3fca5d 100644 --- a/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome-after-unregister.js +++ b/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome-after-unregister.js @@ -2,14 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-weak-refs --expose-gc --noincremental-marking +// Flags: --harmony-weak-refs-with-cleanup-some --expose-gc --noincremental-marking let cleanup_count = 0; let cleanup_holdings = []; -let cleanup = function(iter) { - for (holdings of iter) { - cleanup_holdings.push(holdings); - } +let cleanup = function(holdings) { + cleanup_holdings.push(holdings); ++cleanup_count; } |