summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general/worker_grandchild.js
blob: cd21508b2b821ec33f8a44b96a3e16b01488cc5e (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);
});