From 95b463f416caca278ac6ed5dcc910fd013a46654 Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Mon, 24 Feb 2020 15:54:49 -0800 Subject: [PATCH] test: rename FinalizationGroup to FinalizationRegistry --- test/parallel/test-finalization-group-error.js | 2 +- test/parallel/test-finalization-group-regular-gc.js | 2 +- test/parallel/test-finalization-group.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-finalization-group-error.js b/test/parallel/test-finalization-group-error.js index 0685811f55b..46a670073b1 100644 --- a/test/parallel/test-finalization-group-error.js +++ b/test/parallel/test-finalization-group-error.js @@ -5,7 +5,7 @@ const common = require('../common'); const assert = require('assert'); -const g = new globalThis.FinalizationGroup(common.mustCallAtLeast(() => { +const g = new globalThis.FinalizationRegistry(common.mustCallAtLeast(() => { throw new Error('test'); }, 1)); g.register({}, 42); diff --git a/test/parallel/test-finalization-group-regular-gc.js b/test/parallel/test-finalization-group-regular-gc.js index 7a4a4797ead..3c16cfcee23 100644 --- a/test/parallel/test-finalization-group-regular-gc.js +++ b/test/parallel/test-finalization-group-regular-gc.js @@ -7,7 +7,7 @@ const assert = require('assert'); // GC (not global.gc()). const start = Date.now(); -const g = new globalThis.FinalizationGroup(() => { +const g = new globalThis.FinalizationRegistry(() => { const diff = Date.now() - start; assert(diff < 10000, `${diff} >= 10000`); }); diff --git a/test/parallel/test-finalization-group.js b/test/parallel/test-finalization-group.js index 3e6b9d72e35..4b9357e4d18 100644 --- a/test/parallel/test-finalization-group.js +++ b/test/parallel/test-finalization-group.js @@ -4,7 +4,7 @@ const common = require('../common'); -const g = new globalThis.FinalizationGroup(common.mustCallAtLeast(1)); +const g = new globalThis.FinalizationRegistry(common.mustCallAtLeast(1)); g.register({}, 42); setTimeout(() => {