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:
bors-servo 2021-03-30 07:38:57 -04:00 committed by GitHub
commit c52d84dafa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -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))