summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2021-05-10 12:02:47 +0200
committerGitHub <noreply@github.com>2021-05-10 12:02:47 +0200
commitdfe528198d363ebc883da84dc816bce112ecd24b (patch)
treedfa0e67521a5b0a968b57514aa02fc8f114d4132 /runtime/errors.rs
parent32ad8f77d68df04e26ecaed71bdd8d37f048218a (diff)
feat: add WebStorage API (#7819)
This commit introduces localStorage and sessionStorage.
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r--runtime/errors.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index f9ef947a3..c5e93d65b 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -157,6 +157,8 @@ fn get_nix_error_class(error: &nix::Error) -> &'static str {
pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> {
deno_core::error::get_custom_error_class(e)
.or_else(|| deno_webgpu::error::get_error_class_name(e))
+ .or_else(|| deno_webstorage::get_quota_exceeded_error_class_name(e))
+ .or_else(|| deno_webstorage::get_not_supported_error_class_name(e))
.or_else(|| {
e.downcast_ref::<dlopen::Error>()
.map(get_dlopen_error_class)