diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-04-27 00:06:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 01:06:10 +0200 |
commit | 9853c96cc4686a6cd1ffa1e9081c012b8df72ff7 (patch) | |
tree | c631ebfc363c06c468367be7ecd5b98110dde3a0 /core/error.rs | |
parent | 58eab0e2b37fd8c3c83445196d4bde419740373d (diff) |
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"
Diffstat (limited to 'core/error.rs')
-rw-r--r-- | core/error.rs | 4 |
1 files changed, 0 insertions, 4 deletions
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<v8::Value>, |