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 <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
devsnek authored and MylesBorins committed Dec 12, 2017
1 parent fb553b5 commit c5d20b3
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 c5d20b3

Please sign in to comment.