From cb7739d900b833f03902f767338af7b40cc41f54 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sun, 3 Dec 2017 01:31:27 -0600 Subject: [PATCH] util: remove check for global.process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit process is explicitly passed by NativeModule now. PR-URL: https://github.com/nodejs/node/pull/17435 Reviewed-By: Timothy Gu Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Yuta Hiroto Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- lib/internal/util.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/internal/util.js b/lib/internal/util.js index 38c63390df922e..c507c493d1ee3a 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -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; }