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" --- core/error.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/error.rs') diff --git a/core/error.rs b/core/error.rs index 587581e82..8e6c43482 100644 --- a/core/error.rs +++ b/core/error.rs @@ -172,10 +172,6 @@ pub(crate) struct NativeJsError { } impl JsError { - pub(crate) fn create(js_error: Self) -> Error { - js_error.into() - } - pub fn from_v8_exception( scope: &mut v8::HandleScope, exception: v8::Local, -- cgit v1.2.3