CrossSWE-Bench / environments /runtime-node-65621 /v1 /addon-object-public-driver.js
Silin-Chen's picture
CrossSWE-Bench: current 171-instance release
0e239c6
Raw History Blame Contribute Delete
697 Bytes
'use strict';
// Await the unchanged upstream object module and verify all native variants ran.
const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
test('unchanged upstream Object tests with all four native configurations', async () => {
await require('/testbed/nodejs/node-addon-api/test/object/object.js');
const observed = fs.readFileSync(process.env.CROSSSWE_PUBLIC_BINDING_TRACE, 'utf8')
.trim().split('\n').sort();
assert.deepEqual(observed, ['binding', 'binding_custom_namespace',
'binding_noexcept', 'binding_noexcept_maybe']);
console.log('PUBLIC_NATIVE_BINDING_CONFIGURATIONS ' + JSON.stringify(observed));
});