Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /**
2 * Expects a file. Returns an object containing the size, type, name and path
3 * using another worker. Used to test posting of file from worker to worker.
4 */
5 onmessage = function(event) {
6 var worker = new Worker("file_worker.js");
8 worker.postMessage(event.data);
10 worker.onmessage = function(event) {
11 postMessage(event.data);
12 }
14 worker.onerror = function(event) {
15 postMessage(undefined);
16 }
17 };