Skip to content

Commit 59711ab

Browse files
devsnekapapirovski
authored andcommitted
util: remove check for global.process
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]>
1 parent 0ab98f1 commit 59711ab

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/internal/util.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ const codesWarned = {};
3333
// Returns a modified function which warns once by default.
3434
// If --no-deprecation is set, then it is a no-op.
3535
function deprecate(fn, msg, code) {
36-
// Allow for deprecating things in the process of starting up.
37-
if (global.process === undefined) {
38-
return function(...args) {
39-
return deprecate(fn, msg).apply(this, args);
40-
};
41-
}
42-
4336
if (process.noDeprecation === true) {
4437
return fn;
4538
}

0 commit comments

Comments
 (0)