aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-18 11:03:06 +0100
committerGitHub <noreply@github.com>2020-04-18 18:03:06 +0800
commit708973e51d418230918a2d0c2fcafb79d1e1c250 (patch)
tree65f9de4f3a24071e6171494f32438f20c938e980 /tools
parentdac9e69f9efb491c274670f36301fd38b0ef4dd6 (diff)
downloadtracifyjs-708973e51d418230918a2d0c2fcafb79d1e1c250.tar.gz
tracifyjs-708973e51d418230918a2d0c2fcafb79d1e1c250.zip
report top-level default options (#3797)
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js4
1 files changed, 2 insertions, 2 deletions
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)) {