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