diff options
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/json-schema.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/json-schema.js b/ext/bg/js/json-schema.js index 29873b52..c20cb502 100644 --- a/ext/bg/js/json-schema.js +++ b/ext/bg/js/json-schema.js @@ -179,14 +179,14 @@ class JsonSchemaProxyHandler { return valueType; } } - throw new Error(`Ambiguous property type for ${property}`); + return null; } if (typeof type === 'undefined') { if (typeof value !== 'undefined') { return JsonSchemaProxyHandler.getValueType(value); } - throw new Error(`No property type for ${property}`); + return null; } return type; |