diff options
Diffstat (limited to 'thirdparty/systemjs/test/tests/duplicateDeps')
-rw-r--r-- | thirdparty/systemjs/test/tests/duplicateDeps/m1.js | 23 | ||||
-rw-r--r-- | thirdparty/systemjs/test/tests/duplicateDeps/m2.js | 13 |
2 files changed, 36 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/duplicateDeps/m1.js b/thirdparty/systemjs/test/tests/duplicateDeps/m1.js new file mode 100644 index 000000000..77b7efb3b --- /dev/null +++ b/thirdparty/systemjs/test/tests/duplicateDeps/m1.js @@ -0,0 +1,23 @@ +System.register(["tests/duplicateDeps/m2.js", "tests/duplicateDeps/m2.js", "tests/duplicateDeps/m2.js"], function(exports_1) {
+ var m2_1, m2_2;
+ function foo() {
+ return m2_1.f1() + m2_2.f2();
+ }
+ exports_1("foo", foo);
+ return {
+ setters:[
+ function (_m2_1) {
+ m2_1 = _m2_1;
+ },
+ function (_m2_2) {
+ m2_2 = _m2_2;
+ },
+ function (_m2_3) {
+ var reexports_1 = {};
+ reexports_1["f3"] = _m2_3["f3"];
+ exports_1(reexports_1);
+ }],
+ execute: function() {
+ }
+ }
+});
diff --git a/thirdparty/systemjs/test/tests/duplicateDeps/m2.js b/thirdparty/systemjs/test/tests/duplicateDeps/m2.js new file mode 100644 index 000000000..03f71ea8e --- /dev/null +++ b/thirdparty/systemjs/test/tests/duplicateDeps/m2.js @@ -0,0 +1,13 @@ +System.register([], function(exports_1) {
+ function f1() { return 1; }
+ exports_1("f1", f1);
+ function f2() { return 2; }
+ exports_1("f2", f2);
+ function f3() { return 3; }
+ exports_1("f3", f3);
+ return {
+ setters:[],
+ execute: function() {
+ }
+ }
+});
|