diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd3e799a..947df1e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: uses: hecrj/setup-rust-action@v1 with: components: clippy, rustfmt - rust-version: 1.55.0 + rust-version: 1.56.0 - name: Install python uses: actions/setup-python@v2 diff --git a/Cargo.lock b/Cargo.lock index bb9e40df..ae0def3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -72,19 +72,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "rusty_v8" -version = "0.32.0" -dependencies = [ - "align-data", - "bitflags", - "fslock", - "lazy_static", - "libc", - "trybuild", - "which", -] - [[package]] name = "ryu" version = "1.0.5" @@ -171,6 +158,19 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" +[[package]] +name = "v8" +version = "0.32.0" +dependencies = [ + "align-data", + "bitflags", + "fslock", + "lazy_static", + "libc", + "trybuild", + "which", +] + [[package]] name = "which" version = "4.1.0" diff --git a/Cargo.toml b/Cargo.toml index d90c2da6..daed7f75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rusty_v8" +name = "v8" version = "0.32.0" description = "Rust bindings to V8" readme = "README.md" diff --git a/README.md b/README.md index 3b2b6c60..8335602c 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ V8 Version: 9.6.180.8 [![ci](https://github.com/denoland/rusty_v8/workflows/ci/badge.svg?branch=main)](https://github.com/denoland/rusty_v8/actions) -[![crates](https://img.shields.io/crates/v/rusty_v8.svg)](https://crates.io/crates/rusty_v8) -[![docs](https://docs.rs/rusty_v8/badge.svg)](https://docs.rs/rusty_v8) +[![crates](https://img.shields.io/crates/v/v8.svg)](https://crates.io/crates/v8) +[![docs](https://docs.rs/v8/badge.svg)](https://docs.rs/v8) ## Goals diff --git a/examples/hello_world.rs b/examples/hello_world.rs index 2eebe5ee..02f03d6d 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -1,5 +1,3 @@ -use rusty_v8 as v8; - fn main() { // Initialize V8. let platform = v8::new_default_platform(0, false).make_shared(); diff --git a/examples/process.rs b/examples/process.rs index 7ae53f4c..bf84df6e 100644 --- a/examples/process.rs +++ b/examples/process.rs @@ -1,4 +1,3 @@ -use rusty_v8 as v8; use std::collections::HashMap; use std::convert::TryFrom; diff --git a/examples/shell.rs b/examples/shell.rs index 02987d13..50fd5981 100644 --- a/examples/shell.rs +++ b/examples/shell.rs @@ -1,5 +1,3 @@ -use rusty_v8 as v8; - fn main() { // Initialize V8. let platform = v8::new_default_platform(0, false).make_shared(); diff --git a/src/V8.rs b/src/V8.rs index 2802157d..6dd48ec0 100644 --- a/src/V8.rs +++ b/src/V8.rs @@ -99,7 +99,6 @@ pub fn set_flags_from_command_line(args: Vec) -> Vec { /// # Examples /// /// ``` -/// use rusty_v8 as v8; /// let r = v8::V8::set_flags_from_command_line_with_usage( /// vec!["binaryname".to_string(), "--help".to_string()], /// Some("Usage: binaryname --startup-src=file\n\n"), diff --git a/src/lib.rs b/src/lib.rs index 5b638045..f4ceeb40 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,8 +3,7 @@ //! # Example //! //! ```rust -//! use rusty_v8 as v8; -//! +//! //! //! let platform = v8::new_default_platform(0, false).make_shared(); //! v8::V8::initialize_platform(platform); //! v8::V8::initialize(); diff --git a/src/support.rs b/src/support.rs index e9892f44..4e6fb1fd 100644 --- a/src/support.rs +++ b/src/support.rs @@ -853,7 +853,7 @@ mod tests { #[test] #[should_panic(expected = "assertion failed: \ - `SharedPtr` reference count \ + `SharedPtr` reference count \ does not match expectation")] fn shared_ptr_use_count_assertion_failed() { let shared_ptr: SharedPtr = Default::default(); @@ -862,7 +862,7 @@ mod tests { #[test] #[should_panic(expected = "assertion failed: \ - `SharedRef` reference count \ + `SharedRef` reference count \ does not match expectation")] fn shared_ref_use_count_assertion_failed() { let shared_ref = SharedRef(MockSharedObj::SHARED_PTR_BASE_B); diff --git a/tests/compile_fail/boxed_local.rs b/tests/compile_fail/boxed_local.rs index c8cd762e..765b5d8e 100644 --- a/tests/compile_fail/boxed_local.rs +++ b/tests/compile_fail/boxed_local.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/boxed_local.stderr b/tests/compile_fail/boxed_local.stderr index 69087649..85ee179c 100644 --- a/tests/compile_fail/boxed_local.stderr +++ b/tests/compile_fail/boxed_local.stderr @@ -1,11 +1,11 @@ error[E0597]: `scope2` does not live long enough - --> $DIR/boxed_local.rs:10:43 + --> $DIR/boxed_local.rs:9:43 | -8 | let _boxed_local = { +7 | let _boxed_local = { | ------------ borrow later stored here -9 | let mut scope2 = v8::HandleScope::new(&mut scope1); -10 | let mut scope3 = v8::HandleScope::new(&mut scope2); +8 | let mut scope2 = v8::HandleScope::new(&mut scope1); +9 | let mut scope3 = v8::HandleScope::new(&mut scope2); | ^^^^^^^^^^^ borrowed value does not live long enough -11 | Box::new(v8::Integer::new(&mut scope3, 123)) -12 | }; +10 | Box::new(v8::Integer::new(&mut scope3, 123)) +11 | }; | - `scope2` dropped here while still borrowed diff --git a/tests/compile_fail/handle_scope_escape_lifetime.rs b/tests/compile_fail/handle_scope_escape_lifetime.rs index 94232906..6dfb2fa9 100644 --- a/tests/compile_fail/handle_scope_escape_lifetime.rs +++ b/tests/compile_fail/handle_scope_escape_lifetime.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/handle_scope_escape_lifetime.stderr b/tests/compile_fail/handle_scope_escape_lifetime.stderr index c477e676..5f4a7820 100644 --- a/tests/compile_fail/handle_scope_escape_lifetime.stderr +++ b/tests/compile_fail/handle_scope_escape_lifetime.stderr @@ -1,11 +1,11 @@ error[E0597]: `scope2` does not live long enough - --> $DIR/handle_scope_escape_lifetime.rs:10:43 + --> $DIR/handle_scope_escape_lifetime.rs:9:43 | -8 | let _local = { +7 | let _local = { | ------ borrow later stored here -9 | let mut scope2 = v8::HandleScope::new(&mut scope1); -10 | let mut scope3 = v8::HandleScope::new(&mut scope2); +8 | let mut scope2 = v8::HandleScope::new(&mut scope1); +9 | let mut scope3 = v8::HandleScope::new(&mut scope2); | ^^^^^^^^^^^ borrowed value does not live long enough ... -14 | }; +13 | }; | - `scope2` dropped here while still borrowed diff --git a/tests/compile_fail/handle_scope_escape_to_nowhere.rs b/tests/compile_fail/handle_scope_escape_to_nowhere.rs index 7354ea3b..48c5e006 100644 --- a/tests/compile_fail/handle_scope_escape_to_nowhere.rs +++ b/tests/compile_fail/handle_scope_escape_to_nowhere.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/handle_scope_escape_to_nowhere.stderr b/tests/compile_fail/handle_scope_escape_to_nowhere.stderr index ae089ad1..ec2a668f 100644 --- a/tests/compile_fail/handle_scope_escape_to_nowhere.stderr +++ b/tests/compile_fail/handle_scope_escape_to_nowhere.stderr @@ -1,8 +1,8 @@ -error[E0277]: the trait bound `OwnedIsolate: rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied - --> $DIR/handle_scope_escape_to_nowhere.rs:6:50 +error[E0277]: the trait bound `OwnedIsolate: v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied + --> $DIR/handle_scope_escape_to_nowhere.rs:5:50 | -6 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate); - | ^^^^^^^^^^^^ the trait `rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate` +5 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate); + | ^^^^^^^^^^^^ the trait `v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate` | note: required by `EscapableHandleScope::<'s, 'e>::new` --> $DIR/scope.rs:303:3 @@ -12,8 +12,8 @@ note: required by `EscapableHandleScope::<'s, 'e>::new` 305 | | ) -> P::NewScope { | |__________________^ -error[E0277]: the trait bound `OwnedIsolate: rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied - --> $DIR/handle_scope_escape_to_nowhere.rs:6:20 +error[E0277]: the trait bound `OwnedIsolate: v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied + --> $DIR/handle_scope_escape_to_nowhere.rs:5:20 | -6 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate` +5 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate` diff --git a/tests/compile_fail/handle_scope_lifetime_1.rs b/tests/compile_fail/handle_scope_lifetime_1.rs index 2ea6925d..3b428f61 100644 --- a/tests/compile_fail/handle_scope_lifetime_1.rs +++ b/tests/compile_fail/handle_scope_lifetime_1.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/handle_scope_lifetime_1.stderr b/tests/compile_fail/handle_scope_lifetime_1.stderr index 42e47ea3..a226a9fd 100644 --- a/tests/compile_fail/handle_scope_lifetime_1.stderr +++ b/tests/compile_fail/handle_scope_lifetime_1.stderr @@ -1,9 +1,9 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time - --> $DIR/handle_scope_lifetime_1.rs:8:33 + --> $DIR/handle_scope_lifetime_1.rs:7:33 | -7 | let mut _scope2 = v8::EscapableHandleScope::new(&mut scope1); +6 | let mut _scope2 = v8::EscapableHandleScope::new(&mut scope1); | ----------- first mutable borrow occurs here -8 | let _local = v8::Integer::new(&mut scope1, 123); +7 | let _local = v8::Integer::new(&mut scope1, 123); | ^^^^^^^^^^^ second mutable borrow occurs here -9 | } +8 | } | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `EscapableHandleScope` diff --git a/tests/compile_fail/handle_scope_lifetime_2.rs b/tests/compile_fail/handle_scope_lifetime_2.rs index ffcbf33e..f77d5940 100644 --- a/tests/compile_fail/handle_scope_lifetime_2.rs +++ b/tests/compile_fail/handle_scope_lifetime_2.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/handle_scope_lifetime_2.stderr b/tests/compile_fail/handle_scope_lifetime_2.stderr index 8f7e5fd0..f5af542e 100644 --- a/tests/compile_fail/handle_scope_lifetime_2.stderr +++ b/tests/compile_fail/handle_scope_lifetime_2.stderr @@ -1,9 +1,9 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time - --> $DIR/handle_scope_lifetime_2.rs:8:34 + --> $DIR/handle_scope_lifetime_2.rs:7:34 | -7 | let mut scope2 = v8::EscapableHandleScope::new(&mut scope1); +6 | let mut scope2 = v8::EscapableHandleScope::new(&mut scope1); | ----------- first mutable borrow occurs here -8 | let _local1 = v8::Integer::new(&mut scope1, 123); +7 | let _local1 = v8::Integer::new(&mut scope1, 123); | ^^^^^^^^^^^ second mutable borrow occurs here -9 | let _local2 = v8::Integer::new(&mut scope2, 123); +8 | let _local2 = v8::Integer::new(&mut scope2, 123); | ----------- first borrow later used here diff --git a/tests/compile_fail/handle_scope_lifetime_3.rs b/tests/compile_fail/handle_scope_lifetime_3.rs index 374ff4d3..b0345e65 100644 --- a/tests/compile_fail/handle_scope_lifetime_3.rs +++ b/tests/compile_fail/handle_scope_lifetime_3.rs @@ -1,6 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; - pub fn main() { let mut isolate = v8::Isolate::new(mock()); let mut scope1 = v8::HandleScope::new(&mut isolate); diff --git a/tests/compile_fail/handle_scope_lifetime_3.stderr b/tests/compile_fail/handle_scope_lifetime_3.stderr index 4a8e5428..4ef3cc36 100644 --- a/tests/compile_fail/handle_scope_lifetime_3.stderr +++ b/tests/compile_fail/handle_scope_lifetime_3.stderr @@ -1,9 +1,9 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time - --> $DIR/handle_scope_lifetime_3.rs:10:22 - | -9 | let mut _scope2 = v8::EscapableHandleScope::new(&mut scope1); - | ----------- first mutable borrow occurs here -10 | v8::Integer::new(&mut scope1, 123) - | ^^^^^^^^^^^ second mutable borrow occurs here -11 | }; - | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `EscapableHandleScope` + --> $DIR/handle_scope_lifetime_3.rs:8:22 + | +7 | let mut _scope2 = v8::EscapableHandleScope::new(&mut scope1); + | ----------- first mutable borrow occurs here +8 | v8::Integer::new(&mut scope1, 123) + | ^^^^^^^^^^^ second mutable borrow occurs here +9 | }; + | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `EscapableHandleScope` diff --git a/tests/compile_fail/handle_scope_lifetime_4.rs b/tests/compile_fail/handle_scope_lifetime_4.rs index b0af5555..83c8d173 100644 --- a/tests/compile_fail/handle_scope_lifetime_4.rs +++ b/tests/compile_fail/handle_scope_lifetime_4.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/handle_scope_lifetime_4.stderr b/tests/compile_fail/handle_scope_lifetime_4.stderr index 9eed7aea..54b41127 100644 --- a/tests/compile_fail/handle_scope_lifetime_4.stderr +++ b/tests/compile_fail/handle_scope_lifetime_4.stderr @@ -1,10 +1,10 @@ error[E0597]: `scope2` does not live long enough - --> $DIR/handle_scope_lifetime_4.rs:10:35 + --> $DIR/handle_scope_lifetime_4.rs:9:35 | -8 | let mut _scope3 = { +7 | let mut _scope3 = { | ----------- borrow later stored here -9 | let mut scope2 = v8::HandleScope::new(&mut scope1); -10 | v8::EscapableHandleScope::new(&mut scope2) +8 | let mut scope2 = v8::HandleScope::new(&mut scope1); +9 | v8::EscapableHandleScope::new(&mut scope2) | ^^^^^^^^^^^ borrowed value does not live long enough -11 | }; +10 | }; | - `scope2` dropped here while still borrowed diff --git a/tests/compile_fail/object_without_context_scope.rs b/tests/compile_fail/object_without_context_scope.rs index 43315f29..1cbc4349 100644 --- a/tests/compile_fail/object_without_context_scope.rs +++ b/tests/compile_fail/object_without_context_scope.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/object_without_context_scope.stderr b/tests/compile_fail/object_without_context_scope.stderr index c176120c..dcfb94a4 100644 --- a/tests/compile_fail/object_without_context_scope.stderr +++ b/tests/compile_fail/object_without_context_scope.stderr @@ -1,8 +1,8 @@ error[E0308]: mismatched types - --> $DIR/object_without_context_scope.rs:7:33 + --> $DIR/object_without_context_scope.rs:6:33 | -7 | let _object = v8::Object::new(&mut scope); - | ^^^^^^^^^^ expected struct `rusty_v8::Context`, found `()` +6 | let _object = v8::Object::new(&mut scope); + | ^^^^^^^^^^ expected struct `v8::Context`, found `()` | = note: expected mutable reference `&mut HandleScope<'_>` found mutable reference `&mut HandleScope<'_, ()>` diff --git a/tests/compile_fail/try_catch_exception_lifetime.rs b/tests/compile_fail/try_catch_exception_lifetime.rs index 50560757..d0f5595e 100644 --- a/tests/compile_fail/try_catch_exception_lifetime.rs +++ b/tests/compile_fail/try_catch_exception_lifetime.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/try_catch_exception_lifetime.stderr b/tests/compile_fail/try_catch_exception_lifetime.stderr index 664f164e..9caa32c2 100644 --- a/tests/compile_fail/try_catch_exception_lifetime.stderr +++ b/tests/compile_fail/try_catch_exception_lifetime.stderr @@ -1,11 +1,11 @@ error[E0597]: `scope3` does not live long enough - --> $DIR/try_catch_exception_lifetime.rs:12:43 + --> $DIR/try_catch_exception_lifetime.rs:11:43 | -10 | let _exception = { +9 | let _exception = { | ---------- borrow later stored here -11 | let mut scope3 = v8::HandleScope::new(&mut scope2); -12 | let mut scope4 = v8::HandleScope::new(&mut scope3); +10 | let mut scope3 = v8::HandleScope::new(&mut scope2); +11 | let mut scope4 = v8::HandleScope::new(&mut scope3); | ^^^^^^^^^^^ borrowed value does not live long enough ... -15 | }; +14 | }; | - `scope3` dropped here while still borrowed diff --git a/tests/compile_fail/try_catch_message_lifetime.rs b/tests/compile_fail/try_catch_message_lifetime.rs index 98172495..b2efaf57 100644 --- a/tests/compile_fail/try_catch_message_lifetime.rs +++ b/tests/compile_fail/try_catch_message_lifetime.rs @@ -1,5 +1,4 @@ // Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. -use rusty_v8 as v8; pub fn main() { let mut isolate = v8::Isolate::new(mock()); diff --git a/tests/compile_fail/try_catch_message_lifetime.stderr b/tests/compile_fail/try_catch_message_lifetime.stderr index e38d6932..04499b00 100644 --- a/tests/compile_fail/try_catch_message_lifetime.stderr +++ b/tests/compile_fail/try_catch_message_lifetime.stderr @@ -1,11 +1,11 @@ error[E0597]: `scope3` does not live long enough - --> $DIR/try_catch_message_lifetime.rs:12:43 + --> $DIR/try_catch_message_lifetime.rs:11:43 | -10 | let _message = { +9 | let _message = { | -------- borrow later stored here -11 | let mut scope3 = v8::HandleScope::new(&mut scope2); -12 | let mut scope4 = v8::HandleScope::new(&mut scope3); +10 | let mut scope3 = v8::HandleScope::new(&mut scope2); +11 | let mut scope4 = v8::HandleScope::new(&mut scope3); | ^^^^^^^^^^^ borrowed value does not live long enough ... -15 | }; +14 | }; | - `scope3` dropped here while still borrowed diff --git a/tests/slots.rs b/tests/slots.rs index cf773bb4..3557858d 100644 --- a/tests/slots.rs +++ b/tests/slots.rs @@ -3,7 +3,6 @@ // layers: v8::Isolate -> CoreIsolate -> EsIsolate // This demonstrates how this can be done in a safe way. -use rusty_v8 as v8; use std::ops::Deref; use std::ops::DerefMut; use std::rc::Rc; diff --git a/tests/test_api.rs b/tests/test_api.rs index 0dab3ead..390d1a19 100644 --- a/tests/test_api.rs +++ b/tests/test_api.rs @@ -14,7 +14,6 @@ use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use std::sync::Mutex; -use rusty_v8 as v8; // TODO(piscisaureus): Ideally there would be no need to import this trait. use v8::MapFnTo; diff --git a/tests/test_api_entropy_source.rs b/tests/test_api_entropy_source.rs index 7b69e5f8..d3db2d09 100644 --- a/tests/test_api_entropy_source.rs +++ b/tests/test_api_entropy_source.rs @@ -1,7 +1,6 @@ // Tests from the same file run in a single process. That's why this test // is in its own file, because changing the entropy source affects the // whole process. -use rusty_v8 as v8; use std::sync::atomic::AtomicUsize; use std::sync::atomic::Ordering; diff --git a/tests/test_api_flags.rs b/tests/test_api_flags.rs index ed1dab3f..713b58c2 100644 --- a/tests/test_api_flags.rs +++ b/tests/test_api_flags.rs @@ -1,6 +1,5 @@ // Tests from the same file run in a single process. That's why this test // is in its own file, because changing flags affects the whole process. -use rusty_v8 as v8; #[test] fn set_flags_from_string() { diff --git a/tests/test_platform_atomics_pump_message_loop.rs b/tests/test_platform_atomics_pump_message_loop.rs index 4de42cef..8d70026c 100644 --- a/tests/test_platform_atomics_pump_message_loop.rs +++ b/tests/test_platform_atomics_pump_message_loop.rs @@ -1,5 +1,3 @@ -use rusty_v8 as v8; - #[test] fn atomics_pump_message_loop() { v8::V8::set_flags_from_string("--harmony-top-level-await --allow-natives-syntax --harmony-sharedarraybuffer"); diff --git a/tests/test_single_threaded_default_platform.rs b/tests/test_single_threaded_default_platform.rs index 518a5b99..3e9e8152 100644 --- a/tests/test_single_threaded_default_platform.rs +++ b/tests/test_single_threaded_default_platform.rs @@ -1,5 +1,3 @@ -use rusty_v8 as v8; - #[test] fn single_threaded_default_platform() { v8::V8::set_flags_from_string("--single_threaded");