Closed taki-jaro closed 6 years ago
I would just add this to rust.rs. Right now this code won't be compiled unless lib.rs is modified to include the new module.
Done. So stupid of me, I forgot to update lib.rs
@bors-servo r+
:pushpin: Commit 57661a5 has been approved by jdm
:hourglass: Testing commit 57661a5b834de1cd912a8dd59a16e763811717b3 with merge 33f5ee9992f2d0274bfb1c174008318e87d94ff6...
:sunny: Test successful - status-appveyor, status-travis Approved by: jdm Pushing 33f5ee9992f2d0274bfb1c174008318e87d94ff6 to master...
It is needed for servo to be able to use
JS_GetOwnPropertyDescriptorById
method as it needsMutableHandle<PropertyDescriptor>
as output parameter. To get theMutableHandle
one should do sth likerooted!(in(cx) let mut desc = dummyPropertyDescriptor)
and thendesc.handle_mut()
. Now there are no easy ways to getdummyPropertyDescriptor
.I am not sure if it is the proper way. AFAIK the jsapi_* files are automatically generated they shouldn't be modified and I don't know how to make bindgen generate
derive(Default)
for PropertyDescriptorThis change is