Skip to content

Commit

Permalink
Inline extend function in node implementation (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson authored and thebigredgeek committed May 10, 2017
1 parent c211947 commit 1351d2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,12 @@ function createWritableStdioStream (fd) {
*/

function init (debug) {
debug.inspectOpts = util._extend({}, exports.inspectOpts);
debug.inspectOpts = {};

var keys = Object.keys(exports.inspectOpts);
for (var i = 0; i < keys.length; i++) {
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
}
}

/**
Expand Down

0 comments on commit 1351d2f

Please sign in to comment.