We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb553b5 commit c5d20b3Copy full SHA for c5d20b3
lib/internal/util.js
@@ -24,13 +24,6 @@ function objectToString(o) {
24
// Returns a modified function which warns once by default.
25
// If --no-deprecation is set, then it is a no-op.
26
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
-
34
if (process.noDeprecation === true) {
35
return fn;
36
}
0 commit comments