mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
5247dc0325
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2741582 PR-URL: https://github.com/nodejs/node/pull/37671 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
14 lines
225 B
JavaScript
14 lines
225 B
JavaScript
'use strict';
|
|
|
|
// Flags: --expose-gc
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const w = new globalThis.WeakRef({});
|
|
|
|
setTimeout(() => {
|
|
globalThis.gc();
|
|
assert.strictEqual(w.deref(), undefined);
|
|
}, 200);
|