fix corner case in join_vars (#5746)

fixes #5745
This commit is contained in:
Alex Lam S.L
2022-11-23 15:49:30 +02:00
committed by GitHub
parent 4e7744af2d
commit 2352909c3d
3 changed files with 76 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ function infer_options(options) {
exports.default_options = function() {
var defs = infer_options({ 0: 0 });
Object.keys(defs).forEach(function(component) {
var options = {};
var options = { module: false };
options[component] = { 0: 0 };
if (options = infer_options(options)) {
defs[component] = options;