Validate constructor options
This commit is contained in:
@@ -74,7 +74,7 @@ export class OptionsService implements IOptionsService {
|
|||||||
for (const k of Object.keys(options)) {
|
for (const k of Object.keys(options)) {
|
||||||
if (k in this.options) {
|
if (k in this.options) {
|
||||||
const newValue = options[k as keyof IPartialTerminalOptions] as any;
|
const newValue = options[k as keyof IPartialTerminalOptions] as any;
|
||||||
this.options[k] = newValue;
|
this.options[k] = this._sanitizeAndValidateOption(k, newValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user