summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-09-22 23:16:00 -0400
committerGitHub <noreply@github.com>2020-09-22 23:16:00 -0400
commitffd08a2249b3aab1e8e70d9cef9c350ab41f22a7 (patch)
tree4b0bd043cf76ae373556a08d69dd00de3b375da6 /core/runtime.rs
parent751bb45a0a4ca4ab3baf5e5037c0b10f0430aeb6 (diff)
Actually remove js_check (#7636)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs7
1 files changed, 0 insertions, 7 deletions
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<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]>,