summaryrefslogtreecommitdiff
path: root/lib/internal/process.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/process.js')
-rw-r--r--lib/internal/process.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/internal/process.js b/lib/internal/process.js
index 3f050b42ca..47c2c69b3e 100644
--- a/lib/internal/process.js
+++ b/lib/internal/process.js
@@ -124,7 +124,7 @@ function setupConfig(_source) {
const oldV8BreakIterator = Intl.v8BreakIterator;
const des = Object.getOwnPropertyDescriptor(Intl, 'v8BreakIterator');
des.value = require('internal/util').deprecate(function v8BreakIterator() {
- if (processConfig.hasSmallICU && !process.icu_data_dir) {
+ if (processConfig.hasSmallICU && !processConfig.icuDataDir) {
// Intl.v8BreakIterator() would crash w/ fatal error, so throw instead.
throw new Error('v8BreakIterator: full ICU data not installed. ' +
'See https://github.com/nodejs/node/wiki/Intl');
@@ -134,8 +134,6 @@ function setupConfig(_source) {
'DEP0017');
Object.defineProperty(Intl, 'v8BreakIterator', des);
}
- // Don’t let icu_data_dir leak through.
- delete process.icu_data_dir;
}