mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
PR-URL: https://github.com/nodejs/node/pull/54355 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
// Flags: --expose-gc
|
|
|
|
'use strict';
|
|
const common = require('../../common');
|
|
const addon = require(`./build/${common.buildType}/6_object_wrap`);
|
|
const { gcUntil } = require('../../common/gc');
|
|
|
|
(function scope() {
|
|
addon.objectWrapDanglingReference({});
|
|
})();
|
|
|
|
gcUntil('object-wrap-ref', () => {
|
|
return addon.objectWrapDanglingReferenceTest();
|
|
});
|