Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO committed Mar 10, 2021
1 parent 0a48fca commit c74d7d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ use std::option::Option;
use url::Url;
use v8::MapFnTo;

use serde::{Serialize};
use serde_v8::{from_v8, to_v8};
use serde::Serialize;
use serde_v8::to_v8;

lazy_static! {
pub static ref EXTERNAL_REFERENCES: v8::ExternalReferences =
Expand Down Expand Up @@ -482,7 +482,7 @@ fn eval_context(
thrown: serde_v8::Value<'s>,
is_native_error: bool,
is_compile_error: bool,
};
}

let tc_scope = &mut v8::TryCatch::new(scope);
let name = v8::String::new(
Expand Down Expand Up @@ -781,7 +781,6 @@ fn get_promise_details(
args: v8::FunctionCallbackArguments,
mut rv: v8::ReturnValue,
) {

let promise = match v8::Local::<v8::Promise>::try_from(args.get(0)) {
Ok(val) => val,
Err(_) => {
Expand Down

0 comments on commit c74d7d0

Please sign in to comment.