mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
This reverts commit d9b59def72.
Breaks downloadable source tarball builds as we remove some files prior
to creating a tarball but those files are included in the comprehensive
list of dependencies listed in .deps.
Ref: https://github.com/nodejs/node/pull/17407
PR-URL: https://github.com/nodejs/node/pull/18287
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
20 lines
466 B
JavaScript
20 lines
466 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);
|
|
|
|
testHandleScope.NewScopeEscapeTwice();
|
|
|
|
assert.throws(
|
|
() => {
|
|
testHandleScope.NewScopeWithException(() => { throw new RangeError(); });
|
|
},
|
|
RangeError);
|