mirror of
https://github.com/nodejs/node.git
synced 2025-05-10 01:07:57 +00:00

It takes time to build each of the addons used to test n-api. Consolidate a few of the smaller ones to save build time. Get rid of one more small addon. PR-URL: https://github.com/nodejs/node/pull/13380 Reviewed-By: Jason Ginchereau <jasongin@microsoft.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 lines
262 B
JavaScript
9 lines
262 B
JavaScript
'use strict';
|
|
|
|
const common = require('../../common');
|
|
const addon = require(`./build/${common.buildType}/test_general`);
|
|
const assert = require('assert');
|
|
|
|
addon.createNapiError();
|
|
assert(addon.testNapiErrorCleanup(), 'napi_status cleaned up for second call');
|