From 30b22a676d9db2fdc05397bd0b9f431f0f1c619c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 19 Aug 2018 00:57:41 -0400 Subject: [PATCH] os: destructure ERR_SYSTEM_ERROR properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/22394 Reviewed-By: Luigi Pinca Reviewed-By: Michaël Zasso Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen --- lib/os.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/os.js b/lib/os.js index e65c11fc58ca7f..15d06f1576f2e5 100644 --- a/lib/os.js +++ b/lib/os.js @@ -26,7 +26,7 @@ const constants = process.binding('constants').os; const { deprecate } = require('internal/util'); const isWindows = process.platform === 'win32'; -const { ERR_SYSTEM_ERROR } = require('internal/errors'); +const { codes: { ERR_SYSTEM_ERROR } } = require('internal/errors'); const { getCPUs,