Skip to content

Commit c5d20b3

Browse files
devsnekMylesBorins
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 fb553b5 commit c5d20b3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/internal/util.js

-7
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ function objectToString(o) {
2424
// Returns a modified function which warns once by default.
2525
// If --no-deprecation is set, then it is a no-op.
2626
function deprecate(fn, msg, code) {
27-
// Allow for deprecating things in the process of starting up.
28-
if (global.process === undefined) {
29-
return function(...args) {
30-
return deprecate(fn, msg).apply(this, args);
31-
};
32-
}
33-
3427
if (process.noDeprecation === true) {
3528
return fn;
3629
}

0 commit comments

Comments
 (0)