summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/location_worker.js
blob: 2f16364e1fd415e009b579f7c99d2acfca7fbde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */
for (var string in self.location) {
  var value =
    typeof self.location[string] === "function"
      ? self.location[string]()
      : self.location[string];
  postMessage({ string, value });
}
postMessage({ string: "testfinished" });