1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
5 * Contributor: Jason Orendorff <jorendorff@mozilla.com>
8 if (typeof Worker != 'undefined') {
9 JSTest.waitForExplicitFinish();
10 var w = Worker(workerDir + "worker-error-propagation-child.js");
12 w.onmessage = function () { throw new Error("no reply expected"); };
13 w.onerror = function (event) {
14 reportCompare("string", typeof event.message, "typeof event.message");
15 JSTest.testFinished();
19 reportCompare(0, 0, " PASSED! Test skipped. Shell workers required.");