Backed out changeset 06f41c22f3a6 (bug 1888460) for causing linux xpcshell failures...
[gecko.git] / dom / workers / test / file_worker.js
blob6ed8fe181645db8528c3b96a5a481ff1dca9b24a
1 /**
2  * Expects a file. Returns an object containing the size, type, name and path.
3  */
4 onmessage = function (event) {
5   var file = event.data;
7   var rtnObj = new Object();
9   rtnObj.size = file.size;
10   rtnObj.type = file.type;
11   rtnObj.name = file.name;
12   rtnObj.path = file.path;
13   rtnObj.lastModified = file.lastModified;
15   postMessage(rtnObj);