diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-22 23:30:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-22 23:30:03 +0200 |
| commit | 68fd7a927b26c3e72cf73515821450f3aa252014 (patch) | |
| tree | 61536703a37c1584eef8f69f954418a68f9533f8 /core/examples | |
| parent | cf0c49191e9be862027f74f39318a3479fce3ba2 (diff) | |
refactor(core): support error stack, remove js_check (#7629)
This commit adds support for stack traces in "deno_core".
Implementation of "Display" trait for "JsError" has been updated
and in consequence "deno_core::js_check" became obsolete and
removed.
Diffstat (limited to 'core/examples')
| -rw-r--r-- | core/examples/http_bench_bin_ops.rs | 3 | ||||
| -rw-r--r-- | core/examples/http_bench_json_ops.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/core/examples/http_bench_bin_ops.rs b/core/examples/http_bench_bin_ops.rs index 513ac5b3a..bc92007b0 100644 --- a/core/examples/http_bench_bin_ops.rs +++ b/core/examples/http_bench_bin_ops.rs @@ -3,7 +3,6 @@ #[macro_use] extern crate log; -use deno_core::js_check; use deno_core::BufVec; use deno_core::JsRuntime; use deno_core::Op; @@ -263,7 +262,7 @@ fn main() { .unwrap(); isolate.await }; - js_check(runtime.block_on(future)); + runtime.block_on(future).unwrap(); } #[test] diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs index fab222f4c..a260159e5 100644 --- a/core/examples/http_bench_json_ops.rs +++ b/core/examples/http_bench_json_ops.rs @@ -5,7 +5,6 @@ extern crate log; use deno_core::error::bad_resource_id; use deno_core::error::AnyError; -use deno_core::js_check; use deno_core::BufVec; use deno_core::JsRuntime; use deno_core::OpState; @@ -196,5 +195,5 @@ fn main() { .unwrap(); isolate.await }; - js_check(runtime.block_on(future)); + runtime.block_on(future).unwrap(); } |
