gecko-dev/toolkit/components/workerloader/tests/moduleB-dependency.js
Dave Townsend 6fcdc1e67d Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN
--HG--
extra : commitid : 1iLsb7ZpSpI
extra : rebase_source : ed920934f04e520f5410454ec3930cd5992aa965
2015-12-03 10:02:45 -08:00

11 lines
311 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
exports.B = true;
exports.foo = "foo";
// Side-effect to detect if we attempt to re-execute this module.
if ("loadedB" in self) {
throw new Error("B has been evaluted twice");
}
self.loadedB = true;