mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update Blob::{new, new_inherited} to take Strings
This commit is contained in:
parent
3b98ce0dcc
commit
af325a9a3a
5 changed files with 13 additions and 14 deletions
|
@ -592,7 +592,7 @@ impl Runnable for MessageReceivedTask {
|
|||
match ws.binary_type.get() {
|
||||
BinaryType::Blob => {
|
||||
let slice = DataSlice::from_bytes(data);
|
||||
let blob = Blob::new(global.r(), BlobImpl::new_from_slice(slice), "");
|
||||
let blob = Blob::new(global.r(), BlobImpl::new_from_slice(slice), "".to_owned());
|
||||
blob.to_jsval(cx, message.handle_mut());
|
||||
}
|
||||
BinaryType::Arraybuffer => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue