mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update mozjs.
This commit is contained in:
parent
2f94e0d2a8
commit
c2f8b0468a
5 changed files with 125 additions and 81 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue