From a697a07a5db6423ef558cdf6b2d6690a41766657 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 2 May 2017 00:13:27 -0400 Subject: [PATCH] Inline extend function in node implementation --- src/node.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 3c7407b6..af612976 100644 --- a/src/node.js +++ b/src/node.js @@ -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]]; + } } /**