mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
fix(script): don't pass an unrooted slice to from_rooted_slice
This commit is contained in:
parent
110b3ab6bc
commit
afbe2fa1f2
1 changed files with 6 additions and 1 deletions
|
@ -541,7 +541,12 @@ pub unsafe fn cross_origin_set(
|
|||
*cx,
|
||||
receiver,
|
||||
setter_jsval.handle().into(),
|
||||
&jsapi::HandleValueArray::from_rooted_slice(&[v.get()]),
|
||||
// FIXME: Our binding lacks `HandleValueArray(Handle<Value>)`
|
||||
// <https://searchfox.org/mozilla-central/rev/072710086ddfe25aa2962c8399fefb2304e8193b/js/public/ValueArray.h#54-55>
|
||||
&jsapi::HandleValueArray {
|
||||
length_: 1,
|
||||
elements_: v.ptr,
|
||||
},
|
||||
ignored.handle_mut().into(),
|
||||
) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue