add verification check to deprecation
This commit is contained in:
parent
d9762e9049
commit
ad857dddd1
@ -108,7 +108,7 @@ export default class File {
|
||||
var val = opts[key];
|
||||
if (!val && option.optional) continue;
|
||||
|
||||
if (option.deprecated) {
|
||||
if (val && option.deprecated) {
|
||||
throw new Error("Deprecated option " + key + ": " + option.deprecated);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user