blob: 170362b1a4127cfb91e4d8538d880ea52781b0e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* Expects a blob. Returns an object containing the size, type.
* Used to test posting of blob from worker to worker.
*/
onmessage = function (event) {
var worker = new Worker("fileBlob_worker.js");
worker.postMessage(event.data);
worker.onmessage = function (msg) {
postMessage(msg.data);
};
worker.onerror = function (error) {
postMessage(undefined);
};
};
|