Update Blob::{new, new_inherited} to take Strings

This commit is contained in:
Achal Shah 2016-06-16 23:29:09 -07:00
parent 3b98ce0dcc
commit af325a9a3a
5 changed files with 13 additions and 14 deletions

View file

@ -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 => {