michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // A trivial module that depends on an equally trivial module michael@0: let B = require("chrome://mochitests/content/chrome/toolkit/components/workerloader/tests/moduleB-dependency.js"); michael@0: michael@0: // Ensure that the initial set of exports is empty michael@0: if (Object.keys(exports).length) { michael@0: throw new Error("exports should be empty, initially"); michael@0: } michael@0: michael@0: // Export some values michael@0: exports.A = true; michael@0: exports.importedFoo = B.foo;