dom/workers/test/throwingOnerror_worker.js

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

     1 /**
     2  * Any copyright is dedicated to the Public Domain.
     3  * http://creativecommons.org/publicdomain/zero/1.0/
     4  */
     5 onerror = function(event) {
     6   throw "bar";
     7 };
     9 var count = 0;
    10 onmessage = function(event) {
    11   if (!count++) {
    12     throw "foo";
    13   }
    14   postMessage("");
    15 };

mercurial