report top-level default options (#3797)

This commit is contained in:
Alex Lam S.L
2020-04-18 11:03:06 +01:00
committed by GitHub
parent dac9e69f9e
commit 708973e51d
4 changed files with 34 additions and 14 deletions

View File

@@ -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)) {