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 <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>
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)