Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb7739d

Browse filesBrowse files
devsnekgibfahn
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 d693dac commit cb7739d
Copy full SHA for cb7739d

File tree

Expand file treeCollapse file tree

1 file changed

+0
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-7
lines changed
Open diff view settings
Collapse file

‎lib/internal/util.js‎

Copy file name to clipboardExpand all lines: lib/internal/util.js
-7Lines changed: 0 additions & 7 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.