Revert "Fix the build for NLL"

This reverts commit d1733aa502.
This commit is contained in:
Josh Matthews 2018-08-07 20:24:55 -04:00
parent d1733aa502
commit 7c32ad7c3d
5 changed files with 28 additions and 28 deletions

View file

@ -65,7 +65,7 @@ impl ImageData {
if let Some(jsobject) = opt_jsobject {
let cx = global.get_cx();
typedarray!(in(cx) let array_res: Uint8ClampedArray = jsobject);
let array = array_res
let mut array = array_res
.map_err(|_| Error::Type("Argument to Image data is not an Uint8ClampedArray".to_owned()))?;
let byte_len = array.as_slice().len() as u32;