mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
process: refactor internal/process.js export style
PR-URL: https://github.com/nodejs/node/pull/12644 Reviewed-By: Brian White <mscdex@mscdex.net>
This commit is contained in:
1 parent
0f58d3cbef
commit
579ff2a487
1 file changed
+11
-10
+11
-10
@@ -9,16 +9,6 @@ function lazyConstants() {
|
||||
return _lazyConstants;
|
||||
}
|
||||
|
||||
exports.setup_cpuUsage = setup_cpuUsage;
|
||||
exports.setup_hrtime = setup_hrtime;
|
||||
exports.setupMemoryUsage = setupMemoryUsage;
|
||||
exports.setupConfig = setupConfig;
|
||||
exports.setupKillAndExit = setupKillAndExit;
|
||||
exports.setupSignalHandlers = setupSignalHandlers;
|
||||
exports.setupChannel = setupChannel;
|
||||
exports.setupRawDebug = setupRawDebug;
|
||||
|
||||
|
||||
const assert = process.assert = function(x, msg) {
|
||||
if (!x) throw new Error(msg || 'assertion error');
|
||||
};
|
||||
@@ -267,3 +257,14 @@ function setupRawDebug() {
|
||||
rawDebug(format.apply(null, arguments));
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
setup_cpuUsage,
|
||||
setup_hrtime,
|
||||
setupMemoryUsage,
|
||||
setupConfig,
|
||||
setupKillAndExit,
|
||||
setupSignalHandlers,
|
||||
setupChannel,
|
||||
setupRawDebug
|
||||
};
|
||||
Reference in new issue
Block a user