Browse Source

Fix missing ref on globalOptions in mergeOptions() (#3281)

revert-3409-performance
wimrijnders 7 years ago
committed by yotamberk
parent
commit
2525cc3051
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/util.js

+ 1
- 1
lib/util.js View File

@ -1295,7 +1295,7 @@ exports.mergeOptions = function (mergeTarget, options, option, allowDeletion = f
}
else {
if (options[option].enabled === undefined) {
if (globalOptions[option].enabled !== undefined) {
if (globalOptions[option] !== undefined && globalOptions[option].enabled !== undefined) {
mergeTarget[option].enabled = globalOptions[option].enabled;
} else {
// assume this is the correct value

Loading…
Cancel
Save