fix(ext/webstorage): use error class for sqlite error case (#26806)

Fixes #26797
This commit is contained in:
Leo Kettmeir 2024-11-10 02:43:04 -08:00 committed by GitHub
parent e1b40a69c0
commit bfc143a5ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -623,7 +623,7 @@ fn get_ffi_call_error_class(e: &CallError) -> &'static str {
fn get_webstorage_class_name(e: &WebStorageError) -> &'static str {
match e {
WebStorageError::ContextNotSupported => "DOMExceptionNotSupportedError",
WebStorageError::Sqlite(_) => todo!(),
WebStorageError::Sqlite(_) => "Error",
WebStorageError::Io(e) => get_io_error_class(e),
WebStorageError::StorageExceeded => "DOMExceptionQuotaExceededError",
}