os: destructure ERR_SYSTEM_ERROR properly
PR-URL: https://github.com/nodejs/node/pull/22394 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
9bcb744ee5
commit
5e420f95b1
@ -26,7 +26,7 @@ const constants = process.binding('constants').os;
|
|||||||
const { deprecate } = require('internal/util');
|
const { deprecate } = require('internal/util');
|
||||||
const isWindows = process.platform === 'win32';
|
const isWindows = process.platform === 'win32';
|
||||||
|
|
||||||
const { ERR_SYSTEM_ERROR } = require('internal/errors');
|
const { codes: { ERR_SYSTEM_ERROR } } = require('internal/errors');
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getCPUs,
|
getCPUs,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user