mirror of
https://github.com/denoland/deno.git
synced 2025-01-14 01:50:19 -05:00
Actually remove js_check (#7636)
This commit is contained in:
parent
751bb45a0a
commit
ffd08a2249
2 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -760,13 +760,6 @@ fn check_promise_exceptions<'s>(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn js_check<T>(r: Result<T, AnyError>) -> 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]>,
|
||||
|
|
Loading…
Reference in a new issue