node/test/js-native-api/test_reference_double_free/test.js

12 lines
300 B
JavaScript

'use strict';
// This test makes no assertions. It tests a fix without which it will crash
// with a double free.
const { buildType } = require('../../common');
const addon = require(`./build/${buildType}/test_reference_double_free`);
{ new addon.MyObject(true); }
{ new addon.MyObject(false); }