https://github.com/mozilla/gecko-dev
Raw File
Tip revision: b9f466f0a9e1de587c3c9a7d5cc006abdf414ff0 authored by Ryan VanderMeulen on 29 June 2015, 15:32:20 UTC
No bug - Pin mozharness.json to mozilla-b2g37_v2_2 rather than tracking a specific revision since the branch is only receiving targeted landings. a=test-only
Tip revision: b9f466f
moduleA-depends.js
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

// A trivial module that depends on an equally trivial module
let B = require("chrome://mochitests/content/chrome/toolkit/components/workerloader/tests/moduleB-dependency.js");

// Ensure that the initial set of exports is empty
if (Object.keys(exports).length) {
  throw new Error("exports should be empty, initially");
}

// Export some values
exports.A = true;
exports.importedFoo = B.foo;
back to top