From 59888ff0b27f75feb3ea88cdea943bf9fbd345fd Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 18 Oct 2020 13:07:11 -0400 Subject: [PATCH] upgrade rusty_v8 (#8017) --- Cargo.lock | 4 ++-- core/Cargo.toml | 2 +- core/bindings.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1281c34b6c..8e5fb4db35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1919,9 +1919,9 @@ dependencies = [ [[package]] name = "rusty_v8" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c11463988ec37b3f8cb84e4c2fe8f63058c46e07348b6d1d27b114a2b981304" +checksum = "692dddfb8ae9915b19774a05cadc71363c98bad4fafc13636579da5a7a110016" dependencies = [ "bitflags", "cargo_gn", diff --git a/core/Cargo.toml b/core/Cargo.toml index c114a64d0b..a7e820548b 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -19,7 +19,7 @@ indexmap = "1.6.0" lazy_static = "1.4.0" libc = "0.2.77" log = "0.4.11" -rusty_v8 = "0.11.0" +rusty_v8 = "0.12.0" serde_json = { version = "1.0", features = ["preserve_order"] } serde = { version = "1.0", features = ["derive"] } smallvec = "1.4.2" diff --git a/core/bindings.rs b/core/bindings.rs index 782c98bd12..071d6e015f 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -297,7 +297,7 @@ pub extern "C" fn promise_reject_callback(message: v8::PromiseRejectMessage) { match message.get_event() { v8::PromiseRejectEvent::PromiseRejectWithNoHandler => { - let error = message.get_value(); + let error = message.get_value().unwrap(); let error_global = v8::Global::new(scope, error); state .pending_promise_exceptions