diff options
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/cleanup-is-a-microtask.js')
-rw-r--r-- | deps/v8/test/mjsunit/harmony/weakrefs/cleanup-is-a-microtask.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-is-a-microtask.js b/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-is-a-microtask.js index 6a5bcfa821..c6b834e8fb 100644 --- a/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-is-a-microtask.js +++ b/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-is-a-microtask.js @@ -19,17 +19,17 @@ let log = []; let cleanup = (iter) => { log.push("cleanup"); - for (wc of iter) { } + for (holdings of iter) { } } -let wf = new WeakFactory(cleanup); +let fg = new FinalizationGroup(cleanup); let o = null; (function() { // Use a closure here to avoid other references to o which might keep it alive // (e.g., stack frames pointing to it). o = {}; - wf.makeCell(o); + fg.register(o, {}); })(); let microtask_after_cleanup = () => { |