diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-05-17 19:50:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 13:50:31 -0400 |
commit | f57aac77ff9ce514730504066daca0a61a959d32 (patch) | |
tree | 34be59895172b93a255c933d0f2e579dbf3a3ccc /cli/ops/errors.rs | |
parent | 9766399a3fefcab322051b4a7af41f9d40d79150 (diff) |
BREAKING: Remove unstable Deno.emit and Deno.formatDiagnostics APIs (#14463)
Diffstat (limited to 'cli/ops/errors.rs')
-rw-r--r-- | cli/ops/errors.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cli/ops/errors.rs b/cli/ops/errors.rs deleted file mode 100644 index 19c64c712..000000000 --- a/cli/ops/errors.rs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. - -use crate::diagnostics::Diagnostics; -use deno_core::error::AnyError; -use deno_core::op; -use deno_core::serde_json; -use deno_core::serde_json::json; -use deno_core::serde_json::Value; -use deno_core::Extension; - -pub fn init() -> Extension { - Extension::builder() - .ops(vec![op_format_diagnostic::decl()]) - .build() -} - -#[op] -fn op_format_diagnostic(args: Value) -> Result<Value, AnyError> { - let diagnostic: Diagnostics = serde_json::from_value(args)?; - Ok(json!(diagnostic.to_string())) -} |