summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general/worker_grandchild.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/general/worker_grandchild.js')
-rwxr-xr-xdom/tests/mochitest/general/worker_grandchild.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/tests/mochitest/general/worker_grandchild.js b/dom/tests/mochitest/general/worker_grandchild.js
new file mode 100755
index 000000000..cd21508b2
--- /dev/null
+++ b/dom/tests/mochitest/general/worker_grandchild.js
@@ -0,0 +1,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);
+});