mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 20:04:38 +00:00

Add basic tests for handle scopes as code coverage reports that we are not covering these with the existing tests. PR-URL: https://github.com/nodejs/node/pull/12327 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
11 lines
301 B
JavaScript
11 lines
301 B
JavaScript
'use strict';
|
|
const common = require('../../common');
|
|
const assert = require('assert');
|
|
|
|
// testing handle scope api calls
|
|
const testHandleScope =
|
|
require(`./build/${common.buildType}/test_handle_scope`);
|
|
|
|
testHandleScope.NewScope();
|
|
assert.ok(testHandleScope.NewScopeEscape() instanceof Object);
|