Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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 };