aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-01 22:57:27 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-02 10:12:01 -0500
commit36e641e00168b09e81aad7e234399d06ce12e619 (patch)
tree902781a2b6f451baecfc580e196c932e2bb7a3a9 /ext/bg
parent0171d86b28e3a4373a2deabb4a4a8cf738ca2743 (diff)
getSchemaOrValueType return null
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/json-schema.js4
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;