Dactyloidae/dom/tests/mochitest/general/worker_grandchild.js
Tom Ritter 53a2f1007f Bug 1430173 - Add Timer Rounding tests backported from -central to -esr. r=baku, a=RyanVM
MozReview-Commit-ID: Jl4WZAamgrI

--HG--
extra : transplant_source : E%DC%91lU%1C%A4l%2C%C8%23PCz%EB%F2%81%25%1F%90
2019-02-15 23:37:21 +08:00

10 lines
273 B
JavaScript
Executable file

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);
});