11cb0ef41Sopenharmony_ci// Flags: --expose-gc 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ci'use strict'; 41cb0ef41Sopenharmony_ciconst common = require('../../common'); 51cb0ef41Sopenharmony_ciconst addon = require(`./build/${common.buildType}/6_object_wrap`); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci(function scope() { 81cb0ef41Sopenharmony_ci addon.objectWrapDanglingReference({}); 91cb0ef41Sopenharmony_ci})(); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_cicommon.gcUntil('object-wrap-ref', () => { 121cb0ef41Sopenharmony_ci return addon.objectWrapDanglingReferenceTest(); 131cb0ef41Sopenharmony_ci}); 14