From 708973e51d418230918a2d0c2fcafb79d1e1c250 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 18 Apr 2020 11:03:06 +0100 Subject: report top-level default options (#3797) --- tools/node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/node.js') diff --git a/tools/node.js b/tools/node.js index ef05f571..631a2930 100644 --- a/tools/node.js +++ b/tools/node.js @@ -66,8 +66,8 @@ function infer_options(options) { } exports.default_options = function() { - var defs = {}; - Object.keys(infer_options({ 0: 0 })).forEach(function(component) { + var defs = infer_options({ 0: 0 }); + Object.keys(defs).forEach(function(component) { var options = {}; options[component] = { 0: 0 }; if (options = infer_options(options)) { -- cgit v1.2.3