From d14864c57cebbd1d5bc18b8a9e05e522eb9987b0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 29 Jan 2020 07:03:42 -0500 Subject: Upgrade rusty_v8 (#3816) --- core/Cargo.toml | 2 +- core/shared_queue.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/Cargo.toml b/core/Cargo.toml index c8fc6c12f..a9c2490a0 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -21,7 +21,7 @@ libc = "0.2.66" log = "0.4.8" serde_json = "1.0.44" url = "2.1.0" -rusty_v8 = "0.2.0" +rusty_v8 = "0.2.1" [[example]] name = "deno_core_http_bench" diff --git a/core/shared_queue.rs b/core/shared_queue.rs index 0d2fc15c3..d69284404 100644 --- a/core/shared_queue.rs +++ b/core/shared_queue.rs @@ -43,8 +43,7 @@ impl SharedQueue { let mut buf = Vec::new(); buf.resize(HEAD_INIT + len, 0); let buf = buf.into_boxed_slice(); - let buf = - unsafe { v8::SharedArrayBuffer::new_backing_store_from_boxed_slice(buf) }; + let buf = v8::SharedArrayBuffer::new_backing_store_from_boxed_slice(buf); let mut q = Self { buf: buf.make_shared(), }; -- cgit v1.2.3