0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00

chore: upgrade rusty_v8 to 0.73.0 (#19278)

This commit is contained in:
Bartek Iwańczuk 2023-05-26 16:17:12 +02:00 committed by GitHub
parent 160fe9787e
commit d72e0281ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 13 deletions

4
Cargo.lock generated
View file

@ -5711,9 +5711,9 @@ dependencies = [
[[package]] [[package]]
name = "v8" name = "v8"
version = "0.72.0" version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5c1d09f66ab7f69e36211c5488d47f683fef6b65b83a627cfd75ed9cef254e6" checksum = "e1bd3f04ba5065795dae6e3db668ff0b628920fbd2e39c1755e9b62d93660c3c"
dependencies = [ dependencies = [
"bitflags 1.3.2", "bitflags 1.3.2",
"fslock", "fslock",

View file

@ -41,7 +41,7 @@ license = "MIT"
repository = "https://github.com/denoland/deno" repository = "https://github.com/denoland/deno"
[workspace.dependencies] [workspace.dependencies]
v8 = { version = "0.72.0", default-features = false } v8 = { version = "0.73.0", default-features = false }
deno_ast = { version = "0.26.0", features = ["transpiling"] } deno_ast = { version = "0.26.0", features = ["transpiling"] }
deno_core = { version = "0.188.0", path = "./core" } deno_core = { version = "0.188.0", path = "./core" }

View file

@ -1444,18 +1444,21 @@ fn napi_define_class(
None None
}; };
let mut accessor_property = v8::NONE; let mut accessor_property = v8::PropertyAttribute::NONE;
if getter.is_some() if getter.is_some()
&& setter.is_some() && setter.is_some()
&& (p.attributes & napi_writable) == 0 && (p.attributes & napi_writable) == 0
{ {
accessor_property = accessor_property | v8::READ_ONLY; accessor_property =
accessor_property | v8::PropertyAttribute::READ_ONLY;
} }
if p.attributes & napi_enumerable == 0 { if p.attributes & napi_enumerable == 0 {
accessor_property = accessor_property | v8::DONT_ENUM; accessor_property =
accessor_property | v8::PropertyAttribute::DONT_ENUM;
} }
if p.attributes & napi_configurable == 0 { if p.attributes & napi_configurable == 0 {
accessor_property = accessor_property | v8::DONT_DELETE; accessor_property =
accessor_property | v8::PropertyAttribute::DONT_DELETE;
} }
let proto = tpl.prototype_template(scope); let proto = tpl.prototype_template(scope);

View file

@ -625,21 +625,21 @@ fn op_get_non_index_property_names<'a>(
Err(_) => return None, Err(_) => return None,
}; };
let mut property_filter = v8::ALL_PROPERTIES; let mut property_filter = v8::PropertyFilter::ALL_PROPERTIES;
if filter & 1 == 1 { if filter & 1 == 1 {
property_filter = property_filter | v8::ONLY_WRITABLE property_filter = property_filter | v8::PropertyFilter::ONLY_WRITABLE
} }
if filter & 2 == 2 { if filter & 2 == 2 {
property_filter = property_filter | v8::ONLY_ENUMERABLE property_filter = property_filter | v8::PropertyFilter::ONLY_ENUMERABLE
} }
if filter & 4 == 4 { if filter & 4 == 4 {
property_filter = property_filter | v8::ONLY_CONFIGURABLE property_filter = property_filter | v8::PropertyFilter::ONLY_CONFIGURABLE
} }
if filter & 8 == 8 { if filter & 8 == 8 {
property_filter = property_filter | v8::SKIP_STRINGS property_filter = property_filter | v8::PropertyFilter::SKIP_STRINGS
} }
if filter & 16 == 16 { if filter & 16 == 16 {
property_filter = property_filter | v8::SKIP_SYMBOLS property_filter = property_filter | v8::PropertyFilter::SKIP_SYMBOLS
} }
let maybe_names = obj.get_property_names( let maybe_names = obj.get_property_names(