summaryrefslogtreecommitdiff
path: root/test/parallel/test-internal-errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-internal-errors.js')
-rw-r--r--test/parallel/test-internal-errors.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-internal-errors.js b/test/parallel/test-internal-errors.js
index 3a311819f9..7d5dcce0d4 100644
--- a/test/parallel/test-internal-errors.js
+++ b/test/parallel/test-internal-errors.js
@@ -5,6 +5,8 @@ const {
hijackStdout,
restoreStdout,
} = require('../common/hijackstdio');
+
+const { internalBinding } = require('internal/test/binding');
const assert = require('assert');
const errors = require('internal/errors');
@@ -183,7 +185,7 @@ assert.strictEqual(
'Invalid asyncId value: undefined');
{
- const { kMaxLength } = process.binding('buffer');
+ const { kMaxLength } = internalBinding('buffer');
const error = new errors.codes.ERR_BUFFER_TOO_LARGE();
assert.strictEqual(
error.message,