summaryrefslogtreecommitdiff
path: root/dom/workers/test/rvals_worker.js
blob: 51f9ae72363cbe051117840130cd68eb29a6db4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
onmessage = function(evt) {
  postMessage(postMessage('ignore') == undefined);

  var id = setInterval(function() {}, 200);
  postMessage(clearInterval(id) == undefined);

  id = setTimeout(function() {}, 200);
  postMessage(clearTimeout(id) == undefined);

  postMessage(dump(42 + '\n') == undefined);

  postMessage('finished');
}