diff options
| author | Luca Casonato <lucacasonato@yahoo.com> | 2021-06-05 23:10:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-05 23:10:07 +0200 |
| commit | c73ef5fa143b473677d4cab069241ff018e0c971 (patch) | |
| tree | f13f3ddb1741a81138240c36846e2a23fd562a02 /runtime/errors.rs | |
| parent | bb0c90cadbb99784681a2acac1fd65ac7f802297 (diff) | |
refactor(web): use encoding_rs for text encoding (#10844)
This commit removes all JS based text encoding / text decoding. Instead
encoding now happens in Rust via encoding_rs (already in tree). This
implementation retains stream support, but adds the last missing
encodings. We are incredibly close to 100% WPT on text encoding now.
This should reduce our baseline heap by quite a bit.
Diffstat (limited to 'runtime/errors.rs')
| -rw-r--r-- | runtime/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs index a3332d41a..f773be58d 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -157,7 +157,7 @@ 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_web::get_quota_exceeded_error_class_name(e)) + .or_else(|| deno_web::get_error_class_name(e)) .or_else(|| deno_webstorage::get_not_supported_error_class_name(e)) .or_else(|| { e.downcast_ref::<dlopen::Error>() |
