Skip to content

Commit

Permalink
fix issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardmcmanus committed Mar 30, 2016
1 parent b5ae1b1 commit e2e39be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"keywords": [
"util"
],
"version": "0.10.3",
"version": "0.10.4",
"homepage": "https://github.com/defunctzombie/node-util",
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions util.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ exports.format = function(f) {
// Returns a modified function which warns once by default.
// If --no-deprecation is set, then it is a no-op.
exports.deprecate = function(fn, msg) {
if (typeof process != 'undefined' && process.noDeprecation === true) {
return fn;
}

// Allow for deprecating things in the process of starting up.
if (isUndefined(global.process)) {
if (typeof process == 'undefined') {
return function() {
return exports.deprecate(fn, msg).apply(this, arguments);
};
}

if (process.noDeprecation === true) {
return fn;
}

var warned = false;
function deprecated() {
if (!warned) {
Expand Down

0 comments on commit e2e39be

Please sign in to comment.