0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00
nodejs/test/parallel/test-weakref.js
Antoine du Hamel 5247dc0325 test: remove unnecessary V8 flag
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>
2021-03-09 16:21:38 +01:00

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);