gecko-dev/toolkit/components/workerloader/tests/moduleB-dependency.js
Mark Banner d28d6df424 Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB

--HG--
extra : rebase_source : 63005f09ce96135ea239db2de7bcffa924ae03ef
2017-02-07 11:14:49 +00:00

13 lines
338 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-env commonjs */
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;