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/cleanupsome.js')
-rw-r--r--deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome.js b/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome.js
index f757bdbf7e0..480ec4e2ad8 100644
--- a/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome.js
+++ b/deps/v8/test/mjsunit/harmony/weakrefs/cleanupsome.js
@@ -2,18 +2,16 @@
// 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 --allow-natives-syntax
+// Flags: --harmony-weak-refs-with-cleanup-some --expose-gc --noincremental-marking --allow-natives-syntax
let cleanup_count = 0;
let cleanup_holdings = [];
-let cleanup = function(iter) {
+let cleanup = function(holdings) {
%AbortJS("shouldn't be called");
}
-let cleanup2 = function(iter) {
- for (holdings of iter) {
- cleanup_holdings.push(holdings);
- }
+let cleanup2 = function(holdings) {
+ cleanup_holdings.push(holdings);
++cleanup_count;
}