summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-internal-module-wrap.js2
-rw-r--r--test/parallel/test-internal-util-decorate-error-stack.js3
-rw-r--r--test/parallel/test-util-inspect-proxy.js4
-rw-r--r--test/parallel/test-util-inspect.js4
-rw-r--r--test/parallel/test-util-internal.js3
-rw-r--r--test/parallel/test-util-sigint-watchdog.js4
6 files changed, 14 insertions, 6 deletions
diff --git a/test/parallel/test-internal-module-wrap.js b/test/parallel/test-internal-module-wrap.js
index a1461e34b0..ee0b722d45 100644
--- a/test/parallel/test-internal-module-wrap.js
+++ b/test/parallel/test-internal-module-wrap.js
@@ -7,7 +7,7 @@ const assert = require('assert');
const { internalBinding } = require('internal/test/binding');
const { ModuleWrap } = internalBinding('module_wrap');
-const { getPromiseDetails, isPromise } = process.binding('util');
+const { getPromiseDetails, isPromise } = internalBinding('util');
const setTimeoutAsync = require('util').promisify(setTimeout);
const foo = new ModuleWrap('export * from "bar"; 6;', 'foo');
diff --git a/test/parallel/test-internal-util-decorate-error-stack.js b/test/parallel/test-internal-util-decorate-error-stack.js
index 5694d746c6..40fbf1d48c 100644
--- a/test/parallel/test-internal-util-decorate-error-stack.js
+++ b/test/parallel/test-internal-util-decorate-error-stack.js
@@ -4,7 +4,8 @@ require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const internalUtil = require('internal/util');
-const binding = process.binding('util');
+const { internalBinding } = require('internal/test/binding');
+const binding = internalBinding('util');
const spawnSync = require('child_process').spawnSync;
const kArrowMessagePrivateSymbolIndex = binding.arrow_message_private_symbol;
diff --git a/test/parallel/test-util-inspect-proxy.js b/test/parallel/test-util-inspect-proxy.js
index d7fb28ddc7..b3438a6252 100644
--- a/test/parallel/test-util-inspect-proxy.js
+++ b/test/parallel/test-util-inspect-proxy.js
@@ -1,9 +1,11 @@
+// Flags: --expose-internals
'use strict';
require('../common');
const assert = require('assert');
const util = require('util');
-const processUtil = process.binding('util');
+const { internalBinding } = require('internal/test/binding');
+const processUtil = internalBinding('util');
const opts = { showProxy: true };
const target = {};
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js
index 8e78430c01..b5ccdf019a 100644
--- a/test/parallel/test-util-inspect.js
+++ b/test/parallel/test-util-inspect.js
@@ -1,3 +1,4 @@
+// Flags: --expose-internals
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
@@ -22,10 +23,11 @@
'use strict';
const common = require('../common');
const assert = require('assert');
+const { internalBinding } = require('internal/test/binding');
const JSStream = process.binding('js_stream').JSStream;
const util = require('util');
const vm = require('vm');
-const { previewEntries } = process.binding('util');
+const { previewEntries } = internalBinding('util');
const { inspect } = util;
assert.strictEqual(util.inspect(1), '1');
diff --git a/test/parallel/test-util-internal.js b/test/parallel/test-util-internal.js
index ac7cf12229..4b78cefc6e 100644
--- a/test/parallel/test-util-internal.js
+++ b/test/parallel/test-util-internal.js
@@ -4,13 +4,14 @@
require('../common');
const assert = require('assert');
const fixtures = require('../common/fixtures');
+const { internalBinding } = require('internal/test/binding');
const {
getHiddenValue,
setHiddenValue,
arrow_message_private_symbol: kArrowMessagePrivateSymbolIndex,
safeGetenv
-} = process.binding('util');
+} = internalBinding('util');
for (const oneEnv in process.env) {
assert.strictEqual(
diff --git a/test/parallel/test-util-sigint-watchdog.js b/test/parallel/test-util-sigint-watchdog.js
index 16bc6d3765..7ac1261eab 100644
--- a/test/parallel/test-util-sigint-watchdog.js
+++ b/test/parallel/test-util-sigint-watchdog.js
@@ -1,3 +1,4 @@
+// Flags: --expose-internals
'use strict';
const common = require('../common');
if (common.isWindows) {
@@ -6,7 +7,8 @@ if (common.isWindows) {
}
const assert = require('assert');
-const binding = process.binding('util');
+const { internalBinding } = require('internal/test/binding');
+const binding = internalBinding('util');
[(next) => {
// Test with no signal observed.