refactor: use futures and serde_json from deno_core (#7614)

This commit is contained in:
Bartek Iwańczuk 2020-09-21 18:36:37 +02:00 committed by GitHub
parent 9d738fc197
commit 92edc36442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 156 additions and 97 deletions

View file

@ -12,6 +12,7 @@
use crate::ast::DiagnosticBuffer;
use crate::import_map::ImportMapError;
use deno_core::error::AnyError;
use deno_core::serde_json;
use deno_core::url;
use deno_core::ModuleResolutionError;
use deno_fetch::reqwest;
@ -132,7 +133,7 @@ fn get_request_error_class(error: &reqwest::Error) -> &'static str {
fn get_serde_json_error_class(
error: &serde_json::error::Error,
) -> &'static str {
use serde_json::error::*;
use deno_core::serde_json::error::*;
match error.classify() {
Category::Io => error
.source()