support boolean, string, and number types for config.<setting> context keys, #30845

This commit is contained in:
Johannes Rieken 2018-09-19 10:46:33 +02:00
parent 1ee12b3bd4
commit ef4968a3df

View file

@ -110,6 +110,8 @@ class ConfigAwareContextValuesContainer extends Context {
let value = obj[key];
switch (typeof value) {
case 'boolean':
case 'string':
case 'number':
const configKey = keys.join('.');
const oldValue = this._value[configKey];
this._value[configKey] = value;