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, 3 insertions, 1 deletions
diff --git a/test/sequential/test-fs-readfile-tostring-fail.js b/test/sequential/test-fs-readfile-tostring-fail.js
index c5ed855910..8dcab75e0f 100644
--- a/test/sequential/test-fs-readfile-tostring-fail.js
+++ b/test/sequential/test-fs-readfile-tostring-fail.js
@@ -1,6 +1,8 @@
'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');
@@ -9,7 +11,7 @@ const assert = require('assert');
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+const kStringMaxLength = internalBinding('buffer').kStringMaxLength;
if (common.isAIX && (Number(cp.execSync('ulimit -f')) * 512) < kStringMaxLength)
common.skip('intensive toString tests due to file size confinements');