aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/register-circular1.js
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/systemjs/test/tests/register-circular1.js')
-rw-r--r--thirdparty/systemjs/test/tests/register-circular1.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/register-circular1.js b/thirdparty/systemjs/test/tests/register-circular1.js
new file mode 100644
index 000000000..178980f73
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/register-circular1.js
@@ -0,0 +1,24 @@
+System.register(["./register-circular2.js"], function($__export) {
+ "use strict";
+ var c,
+ q,
+ r;
+ function p() {
+ if (q)
+ $__export("r", r = c);
+ else
+ $__export("q", q = c);
+ }
+ $__export("p", p);
+ return {
+ setters: [function(m) {
+ c = m.c;
+ }],
+ execute: function() {
+ c = 5;
+ q = $__export("q", q);
+ r = $__export("r", r);
+ p();
+ }
+ };
+}); \ No newline at end of file