Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! lib: support returning Safe collections from C++
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
ExE-Boss and aduh95 authored Jan 20, 2021
commit a1ee5331b19c8dc31f77318b51777931bb19f565
7 changes: 2 additions & 5 deletions test/parallel/test-options-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
'use strict';

const common = require('../common');
const { primordials } = require('internal/test/binding');
const {
SafeMap,
} = primordials;
const { primordials: { SafeMap } } = require('internal/test/binding');

const { options, aliases, getOptionValue } = require('internal/options');
const assert = require('assert');
Expand All @@ -17,5 +14,5 @@ assert(aliases instanceof SafeMap,
"require('internal/options').aliases is a SafeMap");

Map.prototype.get =
common.mustNotCall('%Map.prototype.get% must not be called');
common.mustNotCall('`getOptionValue` must not call user-mutable method');
assert.strictEqual(getOptionValue('--expose-internals'), true);