mirror of https://github.com/nodejs/node.git
13 lines
343 B
JavaScript
13 lines
343 B
JavaScript
'use strict';
|
|
|
|
const common = require('../../common');
|
|
const assert = require('assert');
|
|
const { testResolveAsync } = require(`./build/${common.buildType}/binding`);
|
|
|
|
// Checks that resolving promises from C++ works.
|
|
|
|
let called = false;
|
|
testResolveAsync().then(() => { called = true; });
|
|
|
|
process.on('beforeExit', () => { assert(called); });
|