summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/instanceof_worker.js
blob: a7f3ab418dea9c0260caa9d5a39dc7cfd7c5e8e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */
onmessage = function (event) {
  postMessage({
    event: "XMLHttpRequest",
    status: new XMLHttpRequest() instanceof XMLHttpRequest,
    last: false,
  });
  postMessage({
    event: "XMLHttpRequestUpload",
    status: new XMLHttpRequest().upload instanceof XMLHttpRequestUpload,
    last: true,
  });
};