Skip to content

Commit

Permalink
util: remove check for global.process
Browse files Browse the repository at this point in the history
process is explicitly passed by NativeModule now.

PR-URL: #17435
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
devsnek authored and gibfahn committed Dec 20, 2017
1 parent d693dac commit cb7739d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ function objectToString(o) {
// Returns a modified function which warns once by default.
// If --no-deprecation is set, then it is a no-op.
function deprecate(fn, msg, code) {
// Allow for deprecating things in the process of starting up.
if (global.process === undefined) {
return function(...args) {
return deprecate(fn, msg).apply(this, args);
};
}

if (process.noDeprecation === true) {
return fn;
}
Expand Down

0 comments on commit cb7739d

Please sign in to comment.