gecko-dev/dom/workers/test/rvals_worker.js
Andrea Marchesini c4d9d86152 Bug 912086 - Several Workers methods do not set their return value. r=mrbkap
--HG--
rename : dom/workers/test/bug911085_worker.js => dom/workers/test/rvals_worker.js
rename : dom/workers/test/test_bug911085.html => dom/workers/test/test_rvals.html
2013-09-04 13:20:51 -04:00

14 lines
326 B
JavaScript

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) == undefined);
postMessage('finished');
}