michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // Module C and module D have circular dependencies. michael@0: // This should not prevent from loading them. michael@0: michael@0: // This value is set before any circular dependency, it should be visible michael@0: // in D. michael@0: exports.enteredC = true; michael@0: michael@0: let D = require("chrome://mochitests/content/chrome/toolkit/components/workerloader/tests/moduleD-circular.js"); michael@0: michael@0: // The following values are set after importing D. michael@0: // copiedFromD.copiedFromC should have only one field |enteredC| michael@0: exports.copiedFromD = JSON.parse(JSON.stringify(D)); michael@0: // exportedFromD.copiedFromC should have all the fields defined in |exports| michael@0: exports.exportedFromD = D; michael@0: exports.finishedC = true;