• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../../common');
3const assert = require('assert');
4
5// Testing handle scope api calls
6const testHandleScope =
7    require(`./build/${common.buildType}/test_handle_scope`);
8
9testHandleScope.NewScope();
10
11assert.ok(testHandleScope.NewScopeEscape() instanceof Object);
12
13testHandleScope.NewScopeEscapeTwice();
14
15assert.throws(
16  () => {
17    testHandleScope.NewScopeWithException(() => { throw new RangeError(); });
18  },
19  RangeError);
20