mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-09 13:38:51 -04:00
Upgrade V8 to 9.1.246 (#655)
This commit is contained in:
parent
d520fe85bd
commit
d78cc3df87
4 changed files with 9 additions and 11 deletions
1
BUILD.gn
1
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",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Rusty V8 Binding
|
||||
|
||||
V8 Version: 9.0.257.3
|
||||
V8 Version: 9.1.246
|
||||
|
||||
[](https://github.com/denoland/rusty_v8/actions)
|
||||
[](https://crates.io/crates/rusty_v8)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
2
v8
2
v8
|
@ -1 +1 @@
|
|||
Subproject commit b98be7d56e5832590f05f0c6b8a2d27a6d23d42b
|
||||
Subproject commit 866acc533124135f24afa78f918e8520f1110135
|
Loading…
Add table
Reference in a new issue