Update mozjs.

This commit is contained in:
Emilio Cobos Álvarez 2018-03-24 22:14:45 +01:00
parent 2f94e0d2a8
commit c2f8b0468a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 125 additions and 81 deletions

View file

@ -74,8 +74,8 @@ impl TextDecoderMethods for TextDecoder {
match input {
Some(arr) => {
let vec: Vec<u8> = match arr {
ArrayBufferViewOrArrayBuffer::ArrayBufferView(mut a) => a.to_vec(),
ArrayBufferViewOrArrayBuffer::ArrayBuffer(mut a) => a.to_vec()
ArrayBufferViewOrArrayBuffer::ArrayBufferView(ref a) => a.to_vec(),
ArrayBufferViewOrArrayBuffer::ArrayBuffer(ref a) => a.to_vec()
};
let s = if self.fatal {
match self.encoding.decode_without_bom_handling_and_without_replacement(&vec) {