mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Auto merge of #28300 - sagudev:master, r=jdm
Update mozjs to 87 Depends on: https://github.com/servo/rust-mozjs/pull/540
This commit is contained in:
commit
c52d84dafa
3 changed files with 4 additions and 3 deletions
|
@ -113,7 +113,8 @@ impl ImageData {
|
|||
let len = width * height * 4;
|
||||
let cx = global.get_cx();
|
||||
rooted!(in (*cx) let mut array = ptr::null_mut::<JSObject>());
|
||||
Uint8ClampedArray::create(*cx, CreateWith::Length(len), array.handle_mut()).unwrap();
|
||||
Uint8ClampedArray::create(*cx, CreateWith::Length(len as usize), array.handle_mut())
|
||||
.unwrap();
|
||||
(*imagedata).data.set(array.get());
|
||||
|
||||
Ok(reflect_dom_object(imagedata, global))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue