diff --git a/BUILD.gn b/BUILD.gn index ec47a67d..a6604643 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -9,7 +9,6 @@ static_library("rusty_v8") { "//v8:v8", "//v8:v8_libbase", "//v8:v8_libplatform", - "//v8:v8_libsampler", ] configs -= [ "//build/config/compiler:default_init_stack_vars", diff --git a/README.md b/README.md index cedded0e..66a16a18 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rusty V8 Binding -V8 Version: 9.0.257.3 +V8 Version: 9.1.246 [![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) diff --git a/tests/test_api.rs b/tests/test_api.rs index 3897fbdf..552cbeac 100644 --- a/tests/test_api.rs +++ b/tests/test_api.rs @@ -954,18 +954,17 @@ fn set_host_initialize_import_meta_object_callback() { let scope = &mut v8::HandleScope::new(isolate); let context = v8::Context::new(scope); let scope = &mut v8::ContextScope::new(scope, context); - let source = mock_source(scope, "google.com", "import.meta;"); + let source = mock_source( + scope, + "google.com", + "if (import.meta.foo != 'bar') throw 'bad'", + ); let module = v8::script_compiler::compile_module(scope, source).unwrap(); let result = module.instantiate_module(scope, unexpected_module_resolve_callback); assert!(result.is_some()); - let meta = module.evaluate(scope).unwrap(); - assert!(meta.is_object()); - let meta = meta.to_object(scope).unwrap(); - let key = v8::String::new(scope, "foo").unwrap(); - let expected = v8::String::new(scope, "bar").unwrap(); - let actual = meta.get(scope, key.into()).unwrap(); - assert!(expected.strict_equals(actual)); + module.evaluate(scope).unwrap(); + assert_eq!(v8::ModuleStatus::Evaluated, module.get_status()); assert_eq!(CALL_COUNT.load(Ordering::SeqCst), 1); } } diff --git a/v8 b/v8 index b98be7d5..866acc53 160000 --- a/v8 +++ b/v8 @@ -1 +1 @@ -Subproject commit b98be7d56e5832590f05f0c6b8a2d27a6d23d42b +Subproject commit 866acc533124135f24afa78f918e8520f1110135