From 9853c96cc4686a6cd1ffa1e9081c012b8df72ff7 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 27 Apr 2022 00:06:10 +0100 Subject: refactor: Remove PrettyJsError and js_error_create_fn (#14378) This commit: - removes "fmt_errors::PrettyJsError" in favor of "format_js_error" fn - removes "deno_core::JsError::create" and "deno_core::RuntimeOptions::js_error_create_fn" - adds new option to "deno_runtime::ops::worker_host::init" --- runtime/examples/hello_runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/examples/hello_runtime.rs') diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs index cdffa9713..a6b7fb06b 100644 --- a/runtime/examples/hello_runtime.rs +++ b/runtime/examples/hello_runtime.rs @@ -45,7 +45,7 @@ async fn main() -> Result<(), AnyError> { user_agent: "hello_runtime".to_string(), seed: None, source_map_getter: None, - js_error_create_fn: None, + format_js_error_fn: None, web_worker_preload_module_cb, create_web_worker_cb, maybe_inspector_server: None, -- cgit v1.2.3