2015-05-19 19:00:06 +08:00
|
|
|
'use strict';
|
2016-07-16 03:43:24 +08:00
|
|
|
const common = require('../../common');
|
2016-12-31 07:38:06 +08:00
|
|
|
const assert = require('assert');
|
2017-08-18 23:10:18 +08:00
|
|
|
const { runCall } = require(`./build/${common.buildType}/binding`);
|
2013-02-22 04:54:13 +08:00
|
|
|
|
2017-08-18 23:10:18 +08:00
|
|
|
runCall(5, common.mustCall(function(err, val) {
|
2016-11-30 02:33:28 +08:00
|
|
|
assert.strictEqual(err, null);
|
|
|
|
assert.strictEqual(val, 10);
|
2017-03-25 00:46:44 +08:00
|
|
|
process.nextTick(common.mustCall());
|
2016-07-16 03:43:24 +08:00
|
|
|
}));
|