mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix a typo in CGDOMJSProxyHandler_getOwnPropertyDescriptor
Named properties are read-only if there is no named setter.
This commit is contained in:
parent
b783d96749
commit
cbf514d63f
1 changed files with 1 additions and 1 deletions
|
@ -4341,7 +4341,7 @@ class CGDOMJSProxyHandler_getOwnPropertyDescriptor(CGAbstractExternMethod):
|
|||
namedGetter = self.descriptor.operations['NamedGetter']
|
||||
if namedGetter:
|
||||
attrs = "JSPROP_ENUMERATE"
|
||||
if self.descriptor.operations['IndexedSetter'] is None:
|
||||
if self.descriptor.operations['NamedSetter'] is None:
|
||||
attrs += " | JSPROP_READONLY"
|
||||
fillDescriptor = ("desc.get().value = result_root.ptr;\n"
|
||||
"fill_property_descriptor(&mut *desc.ptr, *proxy.ptr, %s);\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue