diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-10 00:28:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 00:28:17 +0200 |
commit | 2db381eba9768acf855219ec9560e20a62659994 (patch) | |
tree | c06a693b804c9a2bc3bf76f7ac66a02f57499ccb /runtime/errors.rs | |
parent | 7600a456dfc880a1eeff230f3f34c87978fedc58 (diff) |
feat: add experimental WebSocketStream API (#10365)
This commit adds the experimental WebSocketStream API when
using the --unstable flag.
The explainer for the API can be found here:
https://github.com/ricea/websocketstream-explainer
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r-- | runtime/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs index f773be58d..db14bd8bf 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -159,6 +159,8 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> { .or_else(|| deno_webgpu::error::get_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(|| deno_websocket::get_network_error_class_name(e)) + .or_else(|| deno_websocket::get_abort_error_class_name(e)) .or_else(|| { e.downcast_ref::<dlopen::Error>() .map(get_dlopen_error_class) |