summaryrefslogtreecommitdiff
path: root/test/sequential/test-fs-readfile-tostring-fail.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/sequential/test-fs-readfile-tostring-fail.js')
-rw-r--r--test/sequential/test-fs-readfile-tostring-fail.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/sequential/test-fs-readfile-tostring-fail.js b/test/sequential/test-fs-readfile-tostring-fail.js
index da8f3930f6..9a443fc71b 100644
--- a/test/sequential/test-fs-readfile-tostring-fail.js
+++ b/test/sequential/test-fs-readfile-tostring-fail.js
@@ -1,8 +1,6 @@
'use strict';
-// Flags: --expose-internals
const common = require('../common');
-const { internalBinding } = require('internal/test/binding');
if (!common.enoughTestMem)
common.skip('intensive toString tests due to memory confinements');
@@ -11,7 +9,7 @@ const assert = require('assert');
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
-const kStringMaxLength = internalBinding('buffer').kStringMaxLength;
+const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH;
if (common.isAIX && (Number(cp.execSync('ulimit -f')) * 512) < kStringMaxLength)
common.skip('intensive toString tests due to file size confinements');