mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 00:43:56 +00:00

Test more current behaviour, based on discussions in https://github.com/nodejs/node/pull/14697. PR-URL: https://github.com/nodejs/node/pull/14922 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
11 lines
313 B
JavaScript
11 lines
313 B
JavaScript
'use strict';
|
|
const common = require('../../common');
|
|
const assert = require('assert');
|
|
const { runCall } = require(`./build/${common.buildType}/binding`);
|
|
|
|
runCall(5, common.mustCall(function(err, val) {
|
|
assert.strictEqual(err, null);
|
|
assert.strictEqual(val, 10);
|
|
process.nextTick(common.mustCall());
|
|
}));
|