Skip to content

Commit 1351d2f

Browse files
dougwilsonthebigredgeek
authored andcommitted
Inline extend function in node implementation (#452)
1 parent c211947 commit 1351d2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/node.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,12 @@ function createWritableStdioStream (fd) {
231231
*/
232232

233233
function init (debug) {
234-
debug.inspectOpts = util._extend({}, exports.inspectOpts);
234+
debug.inspectOpts = {};
235+
236+
var keys = Object.keys(exports.inspectOpts);
237+
for (var i = 0; i < keys.length; i++) {
238+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
239+
}
235240
}
236241

237242
/**

0 commit comments

Comments
 (0)