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

@ -256,7 +256,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor(cx: *mut JSContext,
rooted!(in(cx) let mut val = UndefinedValue());
window.to_jsval(cx, val.handle_mut());
desc.value = val.get();
fill_property_descriptor(&mut desc, proxy.get(), JSPROP_READONLY);
fill_property_descriptor(desc, proxy.get(), JSPROP_READONLY);
return true;
}