Skip to content

Commit

Permalink
test: rename FinalizationGroup to FinalizationRegistry
Browse files Browse the repository at this point in the history
PR-URL: #32831
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
syg authored and targos committed May 12, 2020
1 parent f945c54 commit d1156d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-finalization-group-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-finalization-group-regular-gc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
});
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-finalization-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit d1156d0

Please sign in to comment.