xref: /third_party/node/test/js-native-api/test_reference_double_free/test.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/js-native-api/test_reference_double_free/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ci// This test makes no assertions. It tests a fix without which it will crash
41cb0ef41Sopenharmony_ci// with a double free.
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciconst { buildType } = require('../../common');
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciconst addon = require(`./build/${buildType}/test_reference_double_free`);
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci{ new addon.MyObject(true); }
111cb0ef41Sopenharmony_ci{ new addon.MyObject(false); }
12

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