From ffd08a2249b3aab1e8e70d9cef9c350ab41f22a7 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 22 Sep 2020 23:16:00 -0400 Subject: Actually remove js_check (#7636) --- core/lib.rs | 1 - core/runtime.rs | 7 ------- 2 files changed, 8 deletions(-) (limited to 'core') diff --git a/core/lib.rs b/core/lib.rs index c17399aab..94cd07992 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -46,7 +46,6 @@ pub use crate::ops::OpId; pub use crate::ops::OpState; pub use crate::ops::OpTable; pub use crate::resources::ResourceTable; -pub use crate::runtime::js_check; pub use crate::runtime::GetErrorClassFn; pub use crate::runtime::HeapLimits; pub use crate::runtime::JsRuntime; diff --git a/core/runtime.rs b/core/runtime.rs index 2a6d9f3ee..dfb617223 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -760,13 +760,6 @@ fn check_promise_exceptions<'s>( } } -pub fn js_check(r: Result) -> T { - if let Err(e) = r { - panic!(e.to_string()); - } - r.unwrap() -} - fn boxed_slice_to_uint8array<'sc>( scope: &mut v8::HandleScope<'sc>, buf: Box<[u8]>, -- cgit v1.2.3