0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/lib/constants.js
Bryan English edb78aa2a6 constants: errors -> errno
lib/constants.js was incorrectly copying the constants from the
binding, by copying from `contants.os.errors` instead of
`constants.os.errno`.

PR-URL: https://github.com/nodejs/node/pull/9349
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2016-11-29 07:33:24 -05:00

12 lines
387 B
JavaScript

'use strict';
// This module is soft-deprecated. Users should be directed towards using
// the specific constants exposed by the individual modules on which they
// are most relevant.
const constants = process.binding('constants');
Object.assign(exports,
constants.os.errno,
constants.os.signals,
constants.fs,
constants.crypto);