Skip to content

Commit de2eaa9

Browse files
sygnodejs-ci
authored andcommitted
Rename FinalizationGroup to FinalizationRegistry
1 parent 05c9595 commit de2eaa9

3 files changed

+3
-3
lines changed

test/parallel/test-finalization-group-error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const common = require('../common');
66
const assert = require('assert');
77

8-
const g = new globalThis.FinalizationGroup(common.mustCallAtLeast(() => {
8+
const g = new globalThis.FinalizationRegistry(common.mustCallAtLeast(() => {
99
throw new Error('test');
1010
}, 1));
1111
g.register({}, 42);

test/parallel/test-finalization-group-regular-gc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const assert = require('assert');
77
// GC (not global.gc()).
88

99
const start = Date.now();
10-
const g = new globalThis.FinalizationGroup(() => {
10+
const g = new globalThis.FinalizationRegistry(() => {
1111
const diff = Date.now() - start;
1212
assert(diff < 10000, `${diff} >= 10000`);
1313
});

test/parallel/test-finalization-group.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const common = require('../common');
66

7-
const g = new globalThis.FinalizationGroup(common.mustCallAtLeast(1));
7+
const g = new globalThis.FinalizationRegistry(common.mustCallAtLeast(1));
88
g.register({}, 42);
99

1010
setTimeout(() => {

0 commit comments

Comments
 (0)