• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --expose-internals
2'use strict';
3
4const common = require('../common');
5const { primordials: { SafeMap } } = require('internal/test/binding');
6
7const { options, aliases, getOptionValue } = require('internal/options');
8const assert = require('assert');
9
10assert(options instanceof SafeMap,
11       "require('internal/options').options is a SafeMap");
12
13assert(aliases instanceof SafeMap,
14       "require('internal/options').aliases is a SafeMap");
15
16Map.prototype.get =
17  common.mustNotCall('`getOptionValue` must not call user-mutable method');
18assert.strictEqual(getOptionValue('--expose-internals'), true);
19