Pass a MutableHandle to fill_property_descriptor.

This commit is contained in:
Ms2ger 2016-09-27 10:29:47 +02:00
parent 4ceea0426c
commit 6928fbfa31
3 changed files with 5 additions and 5 deletions

View file

@ -186,7 +186,7 @@ pub fn ensure_expando_object(cx: *mut JSContext, obj: HandleObject) -> *mut JSOb
/// Set the property descriptor's object to `obj` and set it to enumerable,
/// and writable if `readonly` is true.
pub fn fill_property_descriptor(desc: &mut PropertyDescriptor,
pub fn fill_property_descriptor(mut desc: MutableHandle<PropertyDescriptor>,
obj: *mut JSObject,
attrs: u32) {
desc.obj = obj;