summaryrefslogtreecommitdiffstats
path: root/browser/components/resistfingerprinting/test/mochitest/worker_grandchild.js
blob: ef9940d7ab6fa00a7003cf9d377bd30ce5c0f846 (plain)
1
2
3
4
5
6
7
8
9
10
self.addEventListener("message", function (event) {
  let timeStampCodes = event.data;

  let timeStamps = [];
  for (let timeStampCode of timeStampCodes) {
    timeStamps.push(eval(timeStampCode));
  }
  // Send the timeStamps to the parent.
  postMessage(timeStamps);
});