xref: /third_party/node/test/js-native-api/6_object_wrap/test-object-wrap-ref.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/js-native-api/6_object_wrap/
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

Indexes created Thu Nov 07 10:32:03 CST 2024