summaryrefslogtreecommitdiffstats
path: root/toolkit/components/workerloader/tests/moduleD-circular.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/workerloader/tests/moduleD-circular.js')
-rw-r--r--toolkit/components/workerloader/tests/moduleD-circular.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolkit/components/workerloader/tests/moduleD-circular.js b/toolkit/components/workerloader/tests/moduleD-circular.js
new file mode 100644
index 000000000..d77bdc74d
--- /dev/null
+++ b/toolkit/components/workerloader/tests/moduleD-circular.js
@@ -0,0 +1,11 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+// Module C and module D have circular dependencies.
+// This should not prevent from loading them.
+
+exports.enteredD = true;
+var C = require("chrome://mochitests/content/chrome/toolkit/components/workerloader/tests/moduleC-circular.js");
+exports.copiedFromC = JSON.parse(JSON.stringify(C));
+exports.exportedFromC = C;
+exports.finishedD = true;