Rolling to V8 9.7.106.2 (#827)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
github-actions[bot] 2021-11-08 01:24:05 +01:00 committed by GitHub
parent 314fe76bf2
commit 7cc28c5e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Rusty V8 Binding
V8 Version: 9.6.180.10
V8 Version: 9.7.106.2
[![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/v8.svg)](https://crates.io/crates/v8)

View File

@ -971,8 +971,9 @@ V(ToStringTag)
V(Unscopables)
#undef V
const v8::Value* v8__Symbol__Description(const v8::Symbol& self) {
return local_to_ptr(ptr_to_local(&self)->Description());
const v8::Value* v8__Symbol__Description(const v8::Symbol& self,
v8::Isolate* isolate) {
return local_to_ptr(ptr_to_local(&self)->Description(isolate));
}
const v8::Private* v8__Private__New(v8::Isolate* isolate,

View File

@ -14,7 +14,10 @@ extern "C" {
isolate: *mut Isolate,
description: *const String,
) -> *const Symbol;
fn v8__Symbol__Description(this: *const Symbol) -> *const Value;
fn v8__Symbol__Description(
this: *const Symbol,
isolate: *mut Isolate,
) -> *const Value;
}
macro_rules! well_known {
@ -70,7 +73,11 @@ impl Symbol {
&self,
scope: &mut HandleScope<'s, ()>,
) -> Local<'s, Value> {
unsafe { scope.cast_local(|_| v8__Symbol__Description(&*self)) }.unwrap()
unsafe {
scope
.cast_local(|sd| v8__Symbol__Description(&*self, sd.get_isolate_ptr()))
}
.unwrap()
}
well_known!(get_async_iterator, v8__Symbol__GetAsyncIterator);

2
v8

@ -1 +1 @@
Subproject commit 5e682b481d4fced6667d027578e85c829b8b539d
Subproject commit 89ed41a79629a81e2d89e6342c69593d98ba6b31