1'use strict'; 2 3const common = require('../../common'); 4const assert = require('assert'); 5const { testResolveAsync } = require(`./build/${common.buildType}/binding`); 6 7// Checks that resolving promises from C++ works. 8 9let called = false; 10testResolveAsync().then(() => { called = true; }); 11 12process.on('beforeExit', () => { assert(called); }); 13