blob: ac12190efe3af9b3e7cf36f309b12d6b6ddcc49d [file] [log] [blame]
function calcResponse() {
const response = [
typeof(workerStart),
typeof(performance),
typeof(performance.now),
performance.now()
];
return response;
}
self.onmessage = function(event) {
postMessage(calcResponse());
self.close();
}
self.addEventListener("connect", function(event) {
const port = event.ports[0];
port.onmessage = function(event) {
port.postMessage(calcResponse());
port.close();
};
});