mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Rename FillPropertyDescriptor to fill_property_descriptor.
This commit is contained in:
parent
2592045ed4
commit
bcd9ca6081
3 changed files with 9 additions and 8 deletions
|
@ -136,7 +136,8 @@ pub fn ensure_expando_object(cx: *mut JSContext, obj: *mut JSObject)
|
|||
|
||||
/// Set the property descriptor's object to `obj` and set it to enumerable,
|
||||
/// and writable if `readonly` is true.
|
||||
pub fn FillPropertyDescriptor(desc: &mut JSPropertyDescriptor, obj: *mut JSObject, readonly: bool) {
|
||||
pub fn fill_property_descriptor(desc: &mut JSPropertyDescriptor,
|
||||
obj: *mut JSObject, readonly: bool) {
|
||||
desc.obj = obj;
|
||||
desc.attrs = if readonly { JSPROP_READONLY } else { 0 } | JSPROP_ENUMERATE;
|
||||
desc.getter = None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue