mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
chore: upgrade rusty_v8 to 0.73.0 (#19278)
This commit is contained in:
parent
160fe9787e
commit
d72e0281ff
4 changed files with 16 additions and 13 deletions
|
@ -1444,18 +1444,21 @@ fn napi_define_class(
|
|||
None
|
||||
};
|
||||
|
||||
let mut accessor_property = v8::NONE;
|
||||
let mut accessor_property = v8::PropertyAttribute::NONE;
|
||||
if getter.is_some()
|
||||
&& setter.is_some()
|
||||
&& (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 {
|
||||
accessor_property = accessor_property | v8::DONT_ENUM;
|
||||
accessor_property =
|
||||
accessor_property | v8::PropertyAttribute::DONT_ENUM;
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue