diff --git a/tests/baselines/reference/systemModule11.js b/tests/baselines/reference/systemModule11.js index f7d47db1d7f..7f120cec40d 100644 --- a/tests/baselines/reference/systemModule11.js +++ b/tests/baselines/reference/systemModule11.js @@ -42,78 +42,84 @@ export * from 'a'; //// [file1.js] // set of tests cases that checks generation of local storage for exported names -System.register(['bar'], function(exports_1, context_1) { +System.register(["bar"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; - var x; function foo() { } + var x; exports_1("foo", foo); var exportedNames_1 = { - 'x': true, - 'foo': true + "x": true, + "foo": true }; function exportStar_1(m) { var exports = {}; - for(var n in m) { - if (n !== "default"&& !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; + for (var n in m) { + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) + exports[n] = m[n]; } exports_1(exports); } return { - setters:[ + setters: [ function (bar_1_1) { exportStar_1(bar_1_1); - }], - execute: function() { + } + ], + execute: function () { + // set of tests cases that checks generation of local storage for exported names } - } + }; }); //// [file2.js] -System.register(['bar'], function(exports_1, context_1) { +System.register(["bar"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var x, y; var exportedNames_1 = { - 'x': true, - 'y1': true + "x": true, + "y1": true }; function exportStar_1(m) { var exports = {}; - for(var n in m) { - if (n !== "default"&& !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; + for (var n in m) { + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) + exports[n] = m[n]; } exports_1(exports); } return { - setters:[ + setters: [ function (bar_1_1) { exportStar_1(bar_1_1); - }], - execute: function() { + } + ], + execute: function () { exports_1("x", x); exports_1("y1", y); } - } + }; }); //// [file3.js] -System.register(['a', 'bar'], function(exports_1, context_1) { +System.register(["a", "bar"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; function foo() { } exports_1("default", foo); var exportedNames_1 = { - 'x': true, - 'z': true + "x": true, + "z": true }; function exportStar_1(m) { var exports = {}; - for(var n in m) { - if (n !== "default"&& !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; + for (var n in m) { + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) + exports[n] = m[n]; } exports_1(exports); } return { - setters:[ + setters: [ function (a_1_1) { exports_1({ "x": a_1_1["x"], @@ -122,52 +128,56 @@ System.register(['a', 'bar'], function(exports_1, context_1) { }, function (bar_1_1) { exportStar_1(bar_1_1); - }], - execute: function() { + } + ], + execute: function () { } - } + }; }); //// [file4.js] -System.register(['a'], function(exports_1, context_1) { +System.register(["a"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; - var x, z, z1; function foo() { } - exports_1("foo", foo); function default_1() { } + var x, z, z1; + exports_1("foo", foo); exports_1("default", default_1); return { - setters:[ + setters: [ function (a_1_1) { exports_1({ "s": a_1_1["s"], "s2": a_1_1["s1"] }); - }], - execute: function() { + } + ], + execute: function () { exports_1("z", z); exports_1("z2", z1); } - } + }; }); //// [file5.js] -System.register(['a'], function(exports_1, context_1) { +System.register(["a"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; function foo() { } function exportStar_1(m) { var exports = {}; - for(var n in m) { - if (n !== "default") exports[n] = m[n]; + for (var n in m) { + if (n !== "default") + exports[n] = m[n]; } exports_1(exports); } return { - setters:[ + setters: [ function (a_1_1) { exportStar_1(a_1_1); - }], - execute: function() { + } + ], + execute: function () { } - } + }; }); diff --git a/tests/baselines/reference/systemModuleDeclarationMerging.js b/tests/baselines/reference/systemModuleDeclarationMerging.js index 1196aa8898d..aff4891da52 100644 --- a/tests/baselines/reference/systemModuleDeclarationMerging.js +++ b/tests/baselines/reference/systemModuleDeclarationMerging.js @@ -10,15 +10,15 @@ export enum E {} export module E { var x; } //// [systemModuleDeclarationMerging.js] -System.register([], function(exports_1, context_1) { +System.register([], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; - var F, C, E; function F() { } + var F, C, C, E; exports_1("F", F); return { - setters:[], - execute: function() { + setters: [], + execute: function () { (function (F) { var x; })(F = F || (F = {})); @@ -41,5 +41,5 @@ System.register([], function(exports_1, context_1) { })(E = E || (E = {})); exports_1("E", E); } - } + }; }); diff --git a/tests/baselines/reference/systemModuleTargetES6.js b/tests/baselines/reference/systemModuleTargetES6.js index 21bbc6a6ad8..3380c53a970 100644 --- a/tests/baselines/reference/systemModuleTargetES6.js +++ b/tests/baselines/reference/systemModuleTargetES6.js @@ -14,21 +14,21 @@ export function myFunction2() { } //// [systemModuleTargetES6.js] -System.register([], function(exports_1, context_1) { +System.register([], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; - var MyClass, MyClass2; function myFunction() { return new MyClass(); } - exports_1("myFunction", myFunction); function myFunction2() { return new MyClass2(); } + var MyClass, MyClass2; + exports_1("myFunction", myFunction); exports_1("myFunction2", myFunction2); return { - setters:[], - execute: function() { + setters: [], + execute: function () { MyClass = class MyClass { }; exports_1("MyClass", MyClass); @@ -38,5 +38,5 @@ System.register([], function(exports_1, context_1) { MyClass2.value = 42; exports_1("MyClass2", MyClass2); } - } + }; }); diff --git a/tests/baselines/reference/systemModuleWithSuperClass.js b/tests/baselines/reference/systemModuleWithSuperClass.js index 0aab851cc57..a9bb4418608 100644 --- a/tests/baselines/reference/systemModuleWithSuperClass.js +++ b/tests/baselines/reference/systemModuleWithSuperClass.js @@ -13,13 +13,13 @@ export class Bar extends Foo { } //// [foo.js] -System.register([], function(exports_1, context_1) { +System.register([], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var Foo; return { - setters:[], - execute: function() { + setters: [], + execute: function () { Foo = (function () { function Foo() { } @@ -27,7 +27,7 @@ System.register([], function(exports_1, context_1) { }()); exports_1("Foo", Foo); } - } + }; }); //// [bar.js] System.register(['./foo'], function(exports_1, context_1) { @@ -38,14 +38,14 @@ System.register(['./foo'], function(exports_1, context_1) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var foo_1; - var Bar; + var foo_1, Bar; return { - setters:[ + setters: [ function (foo_1_1) { foo_1 = foo_1_1; - }], - execute: function() { + } + ], + execute: function () { Bar = (function (_super) { __extends(Bar, _super); function Bar() { @@ -55,5 +55,5 @@ System.register(['./foo'], function(exports_1, context_1) { }(foo_1.Foo)); exports_1("Bar", Bar); } - } + }; });