diff --git a/tests/baselines/reference/FunctionDeclaration10_es6.js b/tests/baselines/reference/FunctionDeclaration10_es6.js index ccff1ac10362b..79a1740b17e31 100644 --- a/tests/baselines/reference/FunctionDeclaration10_es6.js +++ b/tests/baselines/reference/FunctionDeclaration10_es6.js @@ -3,6 +3,9 @@ function * foo(a = yield => yield) { } //// [FunctionDeclaration10_es6.js] +function* foo(a) { + if (a === void 0) { a = (yield); } +} yield; { } diff --git a/tests/baselines/reference/FunctionDeclaration11_es6.js b/tests/baselines/reference/FunctionDeclaration11_es6.js index ba497b3e529d7..d56eebd3bb52f 100644 --- a/tests/baselines/reference/FunctionDeclaration11_es6.js +++ b/tests/baselines/reference/FunctionDeclaration11_es6.js @@ -3,5 +3,5 @@ function * yield() { } //// [FunctionDeclaration11_es6.js] -function yield() { +function* yield() { } diff --git a/tests/baselines/reference/FunctionDeclaration12_es6.js b/tests/baselines/reference/FunctionDeclaration12_es6.js index d9c1739cb4998..87ea08215fe9c 100644 --- a/tests/baselines/reference/FunctionDeclaration12_es6.js +++ b/tests/baselines/reference/FunctionDeclaration12_es6.js @@ -2,4 +2,4 @@ var v = function * yield() { } //// [FunctionDeclaration12_es6.js] -var v = , yield = function () { }; +var v = function* () { }, yield = function () { }; diff --git a/tests/baselines/reference/FunctionDeclaration13_es6.js b/tests/baselines/reference/FunctionDeclaration13_es6.js index 4c82b0375697c..b0527ee47ef31 100644 --- a/tests/baselines/reference/FunctionDeclaration13_es6.js +++ b/tests/baselines/reference/FunctionDeclaration13_es6.js @@ -6,7 +6,7 @@ function * foo() { //// [FunctionDeclaration13_es6.js] -function foo() { +function* foo() { // Legal to use 'yield' in a type context. var v; } diff --git a/tests/baselines/reference/FunctionDeclaration1_es6.js b/tests/baselines/reference/FunctionDeclaration1_es6.js index 262c7ea02fbb1..534a4c21cd7e5 100644 --- a/tests/baselines/reference/FunctionDeclaration1_es6.js +++ b/tests/baselines/reference/FunctionDeclaration1_es6.js @@ -3,5 +3,5 @@ function * foo() { } //// [FunctionDeclaration1_es6.js] -function foo() { +function* foo() { } diff --git a/tests/baselines/reference/FunctionDeclaration5_es6.js b/tests/baselines/reference/FunctionDeclaration5_es6.js index 2530baa220cad..645ee976ecd96 100644 --- a/tests/baselines/reference/FunctionDeclaration5_es6.js +++ b/tests/baselines/reference/FunctionDeclaration5_es6.js @@ -3,6 +3,7 @@ function*foo(yield) { } //// [FunctionDeclaration5_es6.js] +function* foo() { } yield; { } diff --git a/tests/baselines/reference/FunctionDeclaration6_es6.js b/tests/baselines/reference/FunctionDeclaration6_es6.js index 07b3ff52212a0..e0b871a9172e1 100644 --- a/tests/baselines/reference/FunctionDeclaration6_es6.js +++ b/tests/baselines/reference/FunctionDeclaration6_es6.js @@ -3,6 +3,6 @@ function*foo(a = yield) { } //// [FunctionDeclaration6_es6.js] -function foo(a) { +function* foo(a) { if (a === void 0) { a = yield; } } diff --git a/tests/baselines/reference/FunctionDeclaration7_es6.js b/tests/baselines/reference/FunctionDeclaration7_es6.js index 661e1668e0ff2..49b43e2a2db9f 100644 --- a/tests/baselines/reference/FunctionDeclaration7_es6.js +++ b/tests/baselines/reference/FunctionDeclaration7_es6.js @@ -6,9 +6,9 @@ function*bar() { } //// [FunctionDeclaration7_es6.js] -function bar() { +function* bar() { // 'yield' here is an identifier, and not a yield expression. - function foo(a) { + function* foo(a) { if (a === void 0) { a = yield; } } } diff --git a/tests/baselines/reference/FunctionDeclaration9_es6.js b/tests/baselines/reference/FunctionDeclaration9_es6.js index e19d862f21beb..720e276ccbacf 100644 --- a/tests/baselines/reference/FunctionDeclaration9_es6.js +++ b/tests/baselines/reference/FunctionDeclaration9_es6.js @@ -4,7 +4,7 @@ function * foo() { } //// [FunctionDeclaration9_es6.js] -function foo() { +function* foo() { var v = (_a = {}, _a[yield] = foo, _a); var _a; } diff --git a/tests/baselines/reference/FunctionExpression1_es6.js b/tests/baselines/reference/FunctionExpression1_es6.js index 97e5d28887dbd..4d2f36843a9cc 100644 --- a/tests/baselines/reference/FunctionExpression1_es6.js +++ b/tests/baselines/reference/FunctionExpression1_es6.js @@ -2,4 +2,4 @@ var v = function * () { } //// [FunctionExpression1_es6.js] -var v = function () { }; +var v = function* () { }; diff --git a/tests/baselines/reference/FunctionExpression2_es6.js b/tests/baselines/reference/FunctionExpression2_es6.js index 87960e371282b..bd88efcc7ec2b 100644 --- a/tests/baselines/reference/FunctionExpression2_es6.js +++ b/tests/baselines/reference/FunctionExpression2_es6.js @@ -2,4 +2,4 @@ var v = function * foo() { } //// [FunctionExpression2_es6.js] -var v = function foo() { }; +var v = function* foo() { }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments1_es6.js b/tests/baselines/reference/FunctionPropertyAssignments1_es6.js index 0176b41271340..5975745391aab 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments1_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments1_es6.js @@ -2,4 +2,4 @@ var v = { *foo() { } } //// [FunctionPropertyAssignments1_es6.js] -var v = { foo: function () { } }; +var v = { foo: function* () { } }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments2_es6.js b/tests/baselines/reference/FunctionPropertyAssignments2_es6.js index fc86a6a48d623..b055960b6a81e 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments2_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments2_es6.js @@ -2,4 +2,4 @@ var v = { *() { } } //// [FunctionPropertyAssignments2_es6.js] -var v = { : function () { } }; +var v = { : function* () { } }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments3_es6.js b/tests/baselines/reference/FunctionPropertyAssignments3_es6.js index 89963edbc6e2e..9642c28529d87 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments3_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments3_es6.js @@ -2,4 +2,4 @@ var v = { *{ } } //// [FunctionPropertyAssignments3_es6.js] -var v = { : function () { } }; +var v = { : function* () { } }; diff --git a/tests/baselines/reference/FunctionPropertyAssignments4_es6.js b/tests/baselines/reference/FunctionPropertyAssignments4_es6.js index 71076523414e1..a76405e34dfd5 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments4_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments4_es6.js @@ -2,4 +2,4 @@ var v = { * } //// [FunctionPropertyAssignments4_es6.js] -var v = { : function () { } }; +var v = {}; diff --git a/tests/baselines/reference/FunctionPropertyAssignments5_es6.js b/tests/baselines/reference/FunctionPropertyAssignments5_es6.js index 188a843f7517d..ba25922b67046 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments5_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments5_es6.js @@ -2,5 +2,5 @@ var v = { *[foo()]() { } } //// [FunctionPropertyAssignments5_es6.js] -var v = (_a = {}, _a[foo()] = function () { }, _a); +var v = (_a = {}, _a[foo()] = function* () { }, _a); var _a; diff --git a/tests/baselines/reference/MemberFunctionDeclaration1_es6.js b/tests/baselines/reference/MemberFunctionDeclaration1_es6.js index c69316783bdfc..ec37b3370b03b 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration1_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration1_es6.js @@ -7,6 +7,6 @@ class C { var C = (function () { function C() { } - C.prototype.foo = function () { }; + C.prototype.foo = function* () { }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration2_es6.js b/tests/baselines/reference/MemberFunctionDeclaration2_es6.js index ce1781fcac240..54550ef72e76d 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration2_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration2_es6.js @@ -7,6 +7,6 @@ class C { var C = (function () { function C() { } - C.prototype.foo = function () { }; + C.prototype.foo = function* () { }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration3_es6.js b/tests/baselines/reference/MemberFunctionDeclaration3_es6.js index b32bd6bc57e3b..07d9a021fcd51 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration3_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration3_es6.js @@ -7,6 +7,6 @@ class C { var C = (function () { function C() { } - C.prototype[foo] = function () { }; + C.prototype[foo] = function* () { }; return C; }()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration4_es6.js b/tests/baselines/reference/MemberFunctionDeclaration4_es6.js index abca2775ea0c2..f791d4a1156a0 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration4_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration4_es6.js @@ -7,6 +7,6 @@ class C { var C = (function () { function C() { } - C.prototype. = function () { }; + C.prototype. = function* () { }; return C; }()); diff --git a/tests/baselines/reference/anonymousDefaultExportsSystem.js b/tests/baselines/reference/anonymousDefaultExportsSystem.js index f68806eb1aff2..c1d2cf522fb73 100644 --- a/tests/baselines/reference/anonymousDefaultExportsSystem.js +++ b/tests/baselines/reference/anonymousDefaultExportsSystem.js @@ -7,28 +7,28 @@ export default class {} export default function() {} //// [a.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 default_1; return { - setters:[], - execute: function() { + setters: [], + execute: function () { default_1 = class { }; exports_1("default", default_1); } - } + }; }); //// [b.js] -System.register([], function(exports_1, context_1) { +System.register([], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; function default_1() { } exports_1("default", default_1); return { - setters:[], - execute: function() { + setters: [], + execute: function () { } - } + }; }); diff --git a/tests/baselines/reference/anonymousDefaultExportsUmd.js b/tests/baselines/reference/anonymousDefaultExportsUmd.js index 203b234dfa0cb..9791016199934 100644 --- a/tests/baselines/reference/anonymousDefaultExportsUmd.js +++ b/tests/baselines/reference/anonymousDefaultExportsUmd.js @@ -7,14 +7,14 @@ export default class {} export default function() {} //// [a.js] -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; class default_1 { } @@ -22,14 +22,14 @@ export default function() {} exports.default = default_1; }); //// [b.js] -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; function default_1() { } Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/asOperator3.js b/tests/baselines/reference/asOperator3.js index 406eae1c9d68b..770a853ad25b8 100644 --- a/tests/baselines/reference/asOperator3.js +++ b/tests/baselines/reference/asOperator3.js @@ -11,10 +11,10 @@ var g = tag `Hello ${123} World` as string; var h = tag `Hello` as string; //// [asOperator3.js] -var a = "" + 123 + 456; -var b = "leading " + 123 + 456; +var a = "" + (123 + 456); +var b = "leading " + (123 + 456); var c = 123 + 456 + " trailing"; -var d = ("Hello " + 123 + " World"); +var d = "Hello " + 123 + " World"; var e = "Hello"; var f = 1 + (1 + " end of string"); var g = (_a = ["Hello ", " World"], _a.raw = ["Hello ", " World"], tag(_a, 123)); diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js index 70ebca89005e9..cf4ad26ffe69d 100644 --- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js @@ -134,21 +134,21 @@ false = Math.pow(false, value); } value; // array literals -['', ''] = Math.pow(['', ''], value); +_a = Math.pow(['', ''], value), "" = _a[0], "" = _a[1]; // super var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.call(this); - (_a = _super.prototype, _a. = Math.pow(_a., value)); + (_a = _super.prototype). = Math.pow(_a., value); var _a; } Derived.prototype.foo = function () { - (_a = _super.prototype, _a. = Math.pow(_a., value)); + (_a = _super.prototype). = Math.pow(_a., value); var _a; }; Derived.sfoo = function () { - (_a = _super, _a. = Math.pow(_a., value)); + (_a = _super). = Math.pow(_a., value); var _a; }; return Derived; @@ -175,3 +175,4 @@ foo() = Math.pow(foo(), value); ([]) = Math.pow(([]), value); (function baz1() { }) = Math.pow((function baz1() { }), value); (foo()) = Math.pow((foo()), value); +var _a; diff --git a/tests/baselines/reference/computedPropertyNames29_ES6.js b/tests/baselines/reference/computedPropertyNames29_ES6.js index 1aa479555d488..4ba5dd20dbee9 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES6.js +++ b/tests/baselines/reference/computedPropertyNames29_ES6.js @@ -13,11 +13,11 @@ class C { //// [computedPropertyNames29_ES6.js] class C { bar() { - (() => { + () => { var obj = { [this.bar()]() { } // needs capture }; - }); + }; return 0; } } diff --git a/tests/baselines/reference/computedPropertyNames30_ES6.js b/tests/baselines/reference/computedPropertyNames30_ES6.js index 44a475fed923e..0f993eab2ab19 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES6.js +++ b/tests/baselines/reference/computedPropertyNames30_ES6.js @@ -21,13 +21,13 @@ class Base { class C extends Base { constructor() { super(); - (() => { + () => { var obj = { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } }; - }); + }; } } diff --git a/tests/baselines/reference/computedPropertyNames31_ES6.js b/tests/baselines/reference/computedPropertyNames31_ES6.js index d17423223e398..e1ef58670c9b9 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES6.js +++ b/tests/baselines/reference/computedPropertyNames31_ES6.js @@ -23,11 +23,11 @@ class Base { } class C extends Base { foo() { - (() => { + () => { var obj = { [super.bar()]() { } // needs capture }; - }); + }; return 0; } } diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js index c7b59d0146935..c32e18ec00857 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js @@ -20,14 +20,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; var decorator; let Foo = class Foo { @@ -45,14 +45,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; var decorator; let default_1 = class { diff --git a/tests/baselines/reference/decoratorMetadata.js b/tests/baselines/reference/decoratorMetadata.js index d95658c7f18df..a699124874877 100644 --- a/tests/baselines/reference/decoratorMetadata.js +++ b/tests/baselines/reference/decoratorMetadata.js @@ -48,12 +48,16 @@ var MyComponent = (function () { return MyComponent; }()); __decorate([ - decorator, - __metadata('design:type', Function), - __metadata('design:paramtypes', [Object]), - __metadata('design:returntype', void 0) + decorator, + __metadata("design:typeinfo", { + type: function () { return Function; }, + paramTypes: function () { return [Object]; }, + returnType: function () { return void 0; } + }) ], MyComponent.prototype, "method", null); MyComponent = __decorate([ - decorator, - __metadata('design:paramtypes', [service_1.default]) + decorator, + __metadata("design:typeinfo", { + paramTypes: function () { return [service_1.default]; } + }) ], MyComponent); diff --git a/tests/baselines/reference/decoratorOnClass8.es6.js b/tests/baselines/reference/decoratorOnClass8.es6.js index 7104098a5f5e6..88dd41e7b6065 100644 --- a/tests/baselines/reference/decoratorOnClass8.es6.js +++ b/tests/baselines/reference/decoratorOnClass8.es6.js @@ -13,7 +13,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; -let default_1 = class { +let default_1 = class default_1 { }; default_1.y = 1; default_1 = __decorate([ diff --git a/tests/baselines/reference/defaultExportsGetExportedSystem.js b/tests/baselines/reference/defaultExportsGetExportedSystem.js index eaf6d323f0986..089551195ae81 100644 --- a/tests/baselines/reference/defaultExportsGetExportedSystem.js +++ b/tests/baselines/reference/defaultExportsGetExportedSystem.js @@ -8,28 +8,28 @@ export default function foo() {} //// [a.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 = class Foo { }; exports_1("default", Foo); } - } + }; }); //// [b.js] -System.register([], function(exports_1, context_1) { +System.register([], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; function foo() { } exports_1("default", foo); return { - setters:[], - execute: function() { + setters: [], + execute: function () { } - } + }; }); diff --git a/tests/baselines/reference/defaultExportsGetExportedUmd.js b/tests/baselines/reference/defaultExportsGetExportedUmd.js index 754c5b00ac8c6..79d8822280664 100644 --- a/tests/baselines/reference/defaultExportsGetExportedUmd.js +++ b/tests/baselines/reference/defaultExportsGetExportedUmd.js @@ -8,14 +8,14 @@ export default function foo() {} //// [a.js] -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; class Foo { } @@ -23,14 +23,14 @@ export default function foo() {} exports.default = Foo; }); //// [b.js] -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; function foo() { } Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES6.js b/tests/baselines/reference/destructuringParameterDeclaration1ES6.js index f5c79c5fe886b..3a155b14fd581 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES6.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES6.js @@ -145,8 +145,7 @@ c3({ b: 1 }); // Implied type is { b: number|string }. c5([1, 2, [["string"]]]); // Implied type is is [any, any, [[any]]] c5([1, 2, [["string"]], false, true]); // Implied type is is [any, any, [[any]]] class C2 { - constructor() { - } + constructor() { } d3() { } d4() { } e0([a, b, c]) { } diff --git a/tests/baselines/reference/destructuringParameterProperties1.js b/tests/baselines/reference/destructuringParameterProperties1.js index 55d62d6720e63..cfe16d642d3e2 100644 --- a/tests/baselines/reference/destructuringParameterProperties1.js +++ b/tests/baselines/reference/destructuringParameterProperties1.js @@ -33,21 +33,18 @@ var [c3_x, c3_y, c3_z] = [c3.x, c3.y, c3.z]; var C1 = (function () { function C1(_a) { var x = _a[0], y = _a[1], z = _a[2]; - this.[x, y, z] = [x, y, z]; } return C1; }()); var C2 = (function () { function C2(_a) { var x = _a[0], y = _a[1], z = _a[2]; - this.[x, y, z] = [x, y, z]; } return C2; }()); var C3 = (function () { function C3(_a) { var x = _a.x, y = _a.y, z = _a.z; - this.{ x, y, z } = { x, y, z }; } return C3; }()); diff --git a/tests/baselines/reference/destructuringParameterProperties2.js b/tests/baselines/reference/destructuringParameterProperties2.js index 086585fac8e4a..4dd12bdc317a4 100644 --- a/tests/baselines/reference/destructuringParameterProperties2.js +++ b/tests/baselines/reference/destructuringParameterProperties2.js @@ -34,7 +34,6 @@ var C1 = (function () { function C1(k, _a) { var a = _a[0], b = _a[1], c = _a[2]; this.k = k; - this.[a, b, c] = [a, b, c]; if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) { this.a = a || k; } diff --git a/tests/baselines/reference/destructuringParameterProperties3.js b/tests/baselines/reference/destructuringParameterProperties3.js index 7199201901509..d9b0c5aebf6f1 100644 --- a/tests/baselines/reference/destructuringParameterProperties3.js +++ b/tests/baselines/reference/destructuringParameterProperties3.js @@ -37,7 +37,6 @@ var C1 = (function () { function C1(k, _a) { var a = _a[0], b = _a[1], c = _a[2]; this.k = k; - this.[a, b, c] = [a, b, c]; if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) { this.a = a || k; } diff --git a/tests/baselines/reference/destructuringParameterProperties4.js b/tests/baselines/reference/destructuringParameterProperties4.js index cd6334c8568cd..aa8087cfde68c 100644 --- a/tests/baselines/reference/destructuringParameterProperties4.js +++ b/tests/baselines/reference/destructuringParameterProperties4.js @@ -31,7 +31,6 @@ class C2 extends C1 { class C1 { constructor(k, [a, b, c]) { this.k = k; - this.[a, b, c] = [a, b, c]; if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) { this.a = a || k; } diff --git a/tests/baselines/reference/destructuringParameterProperties5.js b/tests/baselines/reference/destructuringParameterProperties5.js index d857ea040a8be..f07f6e9f5a531 100644 --- a/tests/baselines/reference/destructuringParameterProperties5.js +++ b/tests/baselines/reference/destructuringParameterProperties5.js @@ -16,7 +16,6 @@ var [a_x1, a_x2, a_x3, a_y, a_z] = [a.x1, a.x2, a.x3, a.y, a.z]; var C1 = (function () { function C1(_a) { var _b = _a[0], x1 = _b.x1, x2 = _b.x2, x3 = _b.x3, y = _a[1], z = _a[2]; - this.[{ x1, x2, x3 }, y, z] = [{ x1, x2, x3 }, y, z]; var foo = x1 || x2 || x3 || y || z; var bar = this.x1 || this.x2 || this.x3 || this.y || this.z; } diff --git a/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js b/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js index b6a4eb9783ed4..55fba8115e003 100644 --- a/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js +++ b/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js @@ -107,30 +107,18 @@ var f7 = function (x, y, z) { var f8 = function (x, y, z) { if (z === void 0) { z = 10; } }; -var f9 = function (a) { - return a; -}; -var f10 = function (a) { - return a; -}; -var f11 = function (a) { - return a; -}; +var f9 = function (a) { return a; }; +var f10 = function (a) { return a; }; +var f11 = function (a) { return a; }; var f12 = function (a) { return a; }; // Should be valid. -var f11 = function (a) { - return a; -}; +var f11 = function (a) { return a; }; // Should be valid. -var f12 = function (a) { - return a; -}; +var f12 = function (a) { return a; }; // Should be valid. -var f13 = function (a) { - return a; -}; +var f13 = function (a) { return a; }; // Should be valid. var f14 = function () { }; // Should be valid. @@ -141,30 +129,20 @@ var f16 = function (a, b) { return a + b; }; function foo(func) { } -foo(function () { - return true; -}); +foo(function () { return true; }); foo(function () { return false; }); var m; (function (m) { var City = (function () { function City(x, thing) { - if (thing === void 0) { thing = function () { - return 100; - }; } - this.m = function () { - return 2 * 2 * 2; - }; + if (thing === void 0) { thing = function () { return 100; }; } + this.m = function () { return 2 * 2 * 2; }; } return City; }()); (function (Enum) { - Enum[Enum["claw"] = (function () { - return 10; - })()] = "claw"; + Enum[Enum["claw"] = (function () { return 10; })()] = "claw"; })(m.Enum || (m.Enum = {})); var Enum = m.Enum; - m.v = function (x) { - return new City(Enum.claw); - }; + m.v = function (x) { return new City(Enum.claw); }; })(m || (m = {})); diff --git a/tests/baselines/reference/emitClassDeclarationOverloadInES6.js b/tests/baselines/reference/emitClassDeclarationOverloadInES6.js index 4cf96778f3f4d..e4bc2768fc093 100644 --- a/tests/baselines/reference/emitClassDeclarationOverloadInES6.js +++ b/tests/baselines/reference/emitClassDeclarationOverloadInES6.js @@ -16,6 +16,5 @@ class C { } } class D { - constructor(x, z = "hello") { - } + constructor(x, z = "hello") { } } diff --git a/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.js b/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.js index cd217af6a81d3..62b540776d1cc 100644 --- a/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.js +++ b/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.js @@ -12,8 +12,7 @@ class D extends B { //// [emitClassDeclarationWithExtensionAndTypeArgumentInES6.js] class B { - constructor(a) { - } + constructor(a) { } } class C extends B { } diff --git a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.js b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.js index 8dc5b6cddaabc..5cea85d012941 100644 --- a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.js +++ b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.js @@ -24,9 +24,7 @@ class B { //// [emitClassDeclarationWithTypeArgumentAndOverloadInES6.js] class B { - constructor(a) { - this.B = a; - } + constructor(a) { this.B = a; } foo() { return this.x; } diff --git a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.js b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.js index 4e2872b4f0646..b53e291f0e583 100644 --- a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.js +++ b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.js @@ -16,9 +16,7 @@ class B { //// [emitClassDeclarationWithTypeArgumentInES6.js] class B { - constructor(a) { - this.B = a; - } + constructor(a) { this.B = a; } foo() { return this.x; } diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js index 3b9db4c69980f..d94104a1c4b32 100644 --- a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js @@ -19,14 +19,14 @@ array3[j0++] **= array3[j1++] **= array3[j0++] **= 1; //// [emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js] var array0 = [1, 2, 3]; var i0 = 0; -(_a = array0, _i = ++i0, _a[_i] = Math.pow(_a[_i], 2)); +(_a = array0)[_b = ++i0] = Math.pow(_a[_b], 2); var array1 = [1, 2, 3]; var i1 = 0; -(_b = array1, _c = ++i1, _b[_c] = Math.pow(_b[_c], (_d = array1, _e = ++i1, _d[_e] = Math.pow(_d[_e], 2)))); +(_c = array1)[_d = ++i1] = Math.pow(_c[_d], (_e = array1)[_f = ++i1] = Math.pow(_e[_f], 2)); var array2 = [1, 2, 3]; var i2 = 0; -(_f = array2, _g = ++i2, _f[_g] = Math.pow(_f[_g], Math.pow(array2[++i2], 2))); +(_g = array2)[_h = ++i2] = Math.pow(_g[_h], Math.pow(array2[++i2], 2)); var array3 = [2, 2, 3]; var j0 = 0, j1 = 1; -(_h = array3, _j = j0++, _h[_j] = Math.pow(_h[_j], (_k = array3, _l = j1++, _k[_l] = Math.pow(_k[_l], (_m = array3, _o = j0++, _m[_o] = Math.pow(_m[_o], 1)))))); -var _a, _i, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; +(_j = array3)[_k = j0++] = Math.pow(_j[_k], (_l = array3)[_m = j1++] = Math.pow(_l[_m], (_o = array3)[_p = j0++] = Math.pow(_o[_p], 1))); +var _a, _b, _e, _f, _c, _d, _g, _h, _o, _p, _l, _m, _j, _k; diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js index f61693f192cf4..d16e20c4cac21 100644 --- a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js @@ -23,7 +23,7 @@ function incrementIdx(max) { return idx; } var array1 = [1, 2, 3, 4, 5]; -(_a = array1, _i = incrementIdx(array1.length), _a[_i] = Math.pow(_a[_i], 3)); -(_b = array1, _c = incrementIdx(array1.length), _b[_c] = Math.pow(_b[_c], (_d = array1, _e = incrementIdx(array1.length), _d[_e] = Math.pow(_d[_e], 2)))); -(_f = array1, _g = incrementIdx(array1.length), _f[_g] = Math.pow(_f[_g], Math.pow(array1[incrementIdx(array1.length)], 2))); -var _a, _i, _b, _c, _d, _e, _f, _g; +(_a = array1)[_b = incrementIdx(array1.length)] = Math.pow(_a[_b], 3); +(_c = array1)[_d = incrementIdx(array1.length)] = Math.pow(_c[_d], (_e = array1)[_f = incrementIdx(array1.length)] = Math.pow(_e[_f], 2)); +(_g = array1)[_h = incrementIdx(array1.length)] = Math.pow(_g[_h], Math.pow(array1[incrementIdx(array1.length)], 2)); +var _a, _b, _e, _f, _c, _d, _g, _h; diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js index 99204e6362c6d..c6244161b19f1 100644 --- a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js @@ -18,10 +18,10 @@ function foo() { globalCounter += 1; return { prop: 2 }; } -(_a = foo(), _a.prop = Math.pow(_a.prop, 2)); -var result0 = (_b = foo(), _b.prop = Math.pow(_b.prop, 2)); -(_c = foo(), _c.prop = Math.pow(_c.prop, (_d = foo(), _d.prop = Math.pow(_d.prop, 2)))); -var result1 = (_e = foo(), _e.prop = Math.pow(_e.prop, (_f = foo(), _f.prop = Math.pow(_f.prop, 2)))); -(_g = foo(), _g.prop = Math.pow(_g.prop, Math.pow(foo().prop, 2))); -var result2 = (_h = foo(), _h.prop = Math.pow(_h.prop, Math.pow(foo().prop, 2))); -var _a, _b, _c, _d, _e, _f, _g, _h; +(_a = foo()).prop = Math.pow(_a.prop, 2); +var result0 = (_b = foo()).prop = Math.pow(_b.prop, 2); +(_c = foo()).prop = Math.pow(_c.prop, (_d = foo()).prop = Math.pow(_d.prop, 2)); +var result1 = (_e = foo()).prop = Math.pow(_e.prop, (_f = foo()).prop = Math.pow(_f.prop, 2)); +(_g = foo()).prop = Math.pow(_g.prop, Math.pow(foo().prop, 2)); +var result2 = (_h = foo()).prop = Math.pow(_h.prop, Math.pow(foo().prop, 2)); +var _a, _b, _d, _c, _f, _e, _g, _h; diff --git a/tests/baselines/reference/emitDefaultParametersMethodES6.js b/tests/baselines/reference/emitDefaultParametersMethodES6.js index 2b97e3e1632bf..bd7fcd16a7d61 100644 --- a/tests/baselines/reference/emitDefaultParametersMethodES6.js +++ b/tests/baselines/reference/emitDefaultParametersMethodES6.js @@ -18,18 +18,15 @@ class E { //// [emitDefaultParametersMethodES6.js] class C { - constructor(t, z, x, y = "hello") { - } + constructor(t, z, x, y = "hello") { } foo(x, t = false) { } foo1(x, t = false, ...rest) { } bar(t = false) { } boo(t = false, ...rest) { } } class D { - constructor(y = "hello") { - } + constructor(y = "hello") { } } class E { - constructor(y = "hello", ...rest) { - } + constructor(y = "hello", ...rest) { } } diff --git a/tests/baselines/reference/emitExponentiationOperator4.js b/tests/baselines/reference/emitExponentiationOperator4.js index 7bed614b664ad..3ba8aae44e4a3 100644 --- a/tests/baselines/reference/emitExponentiationOperator4.js +++ b/tests/baselines/reference/emitExponentiationOperator4.js @@ -40,14 +40,14 @@ var temp: any; //// [emitExponentiationOperator4.js] var temp; Math.pow(temp, 3); -Math.pow((--temp), 3); -Math.pow((++temp), 3); -Math.pow((temp--), 3); -Math.pow((temp++), 3); -Math.pow(1, Math.pow((--temp), 3)); -Math.pow(1, Math.pow((++temp), 3)); -Math.pow(1, Math.pow((temp--), 3)); -Math.pow(1, Math.pow((temp++), 3)); +Math.pow(--temp, 3); +Math.pow(++temp, 3); +Math.pow(temp--, 3); +Math.pow(temp++, 3); +Math.pow(1, Math.pow(--temp, 3)); +Math.pow(1, Math.pow(++temp, 3)); +Math.pow(1, Math.pow(temp--, 3)); +Math.pow(1, Math.pow(temp++, 3)); Math.pow((void --temp), 3); Math.pow((void temp--), 3); Math.pow((void 3), 4); diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.js b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.js index 433cd76472684..c3c589e6a6154 100644 --- a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.js +++ b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.js @@ -32,22 +32,22 @@ var t1 = 10; var t2 = 10; var s; // With TemplateTail -(Math.pow(t1, -t2)) + " world"; -(Math.pow((-t1), t2) - t1) + " world"; -(Math.pow((-++t1), t2) - t1) + " world"; -(Math.pow((-t1++), t2) - t1) + " world"; -(Math.pow((~t1), Math.pow(t2, --t1))) + " world"; +Math.pow(t1, -t2) + " world"; +Math.pow((-t1), t2) - t1 + " world"; +Math.pow((-++t1), t2) - t1 + " world"; +Math.pow((-t1++), t2) - t1 + " world"; +Math.pow((~t1), Math.pow(t2, --t1)) + " world"; typeof (Math.pow(t1, Math.pow(t2, t1))) + " world"; // TempateHead & TemplateTail are empt -(Math.pow(t1, -t2)) + " hello world " + (Math.pow(t1, -t2)); -(Math.pow((-t1), t2) - t1) + " hello world " + (Math.pow((-t1), t2) - t1); -(Math.pow((-++t1), t2) - t1) + " hello world " + (Math.pow(t1, Math.pow((-++t1), -t1))); -(Math.pow((-t1++), t2) - t1) + " hello world " + (Math.pow(t2, Math.pow((-t1++), -t1))); -(Math.pow((~t1), Math.pow(t2, --t1))) + " hello world " + (Math.pow((~t1), Math.pow(t2, --t1))); +Math.pow(t1, -t2) + " hello world " + Math.pow(t1, -t2); +Math.pow((-t1), t2) - t1 + " hello world " + (Math.pow((-t1), t2) - t1); +Math.pow((-++t1), t2) - t1 + " hello world " + Math.pow(t1, Math.pow((-++t1), -t1)); +Math.pow((-t1++), t2) - t1 + " hello world " + Math.pow(t2, Math.pow((-t1++), -t1)); +Math.pow((~t1), Math.pow(t2, --t1)) + " hello world " + Math.pow((~t1), Math.pow(t2, --t1)); typeof (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + typeof (Math.pow(t1, Math.pow(t2, t1))); // With templateHead "hello " + (Math.pow((-t1), t2) - t1); "hello " + (Math.pow((-++t1), t2) - t1); "hello " + (Math.pow((-t1++), t2) - t1); -"hello " + (Math.pow((~t1), Math.pow(t2, --t1))); +"hello " + Math.pow((~t1), Math.pow(t2, --t1)); "hello " + typeof (Math.pow(t1, Math.pow(t2, t1))); diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.js index eb879cce6a54d..cd9ac32bbd2d5 100644 --- a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.js +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.js @@ -32,22 +32,22 @@ var t1 = 10; var t2 = 10; var s; // TempateHead & TemplateTail are empty -"" + (Math.pow(t1, t2)); -"" + (Math.pow(t1, Math.pow(t2, t1))); +"" + Math.pow(t1, t2); +"" + Math.pow(t1, Math.pow(t2, t1)); "" + (t1 + Math.pow(t2, t1)); "" + (Math.pow(t1, t2) + t1); "" + (t1 + Math.pow(t2, t2) + t1); "" + typeof (Math.pow(t1, Math.pow(t2, t1))); "" + (1 + typeof (Math.pow(t1, Math.pow(t2, t1)))); -"" + (Math.pow(t1, t2)) + (Math.pow(t1, t2)); -"" + (Math.pow(t1, Math.pow(t2, t1))) + (Math.pow(t1, Math.pow(t2, t1))); +"" + Math.pow(t1, t2) + Math.pow(t1, t2); +"" + Math.pow(t1, Math.pow(t2, t1)) + Math.pow(t1, Math.pow(t2, t1)); "" + (t1 + Math.pow(t2, t1)) + (t1 + Math.pow(t2, t1)); "" + (Math.pow(t1, t2) + t1) + (Math.pow(t1, t2) + t1); "" + (t1 + Math.pow(t2, t2) + t1) + (t1 + Math.pow(t2, t2) + t1); "" + typeof (Math.pow(t1, Math.pow(t2, t1))) + typeof (Math.pow(t1, Math.pow(t2, t1))); -(Math.pow(t1, t2)) + " hello world " + (Math.pow(t1, t2)); -(Math.pow(t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(t1, Math.pow(t2, t1))); -(t1 + Math.pow(t2, t1)) + " hello world " + (t1 + Math.pow(t2, t1)); -(Math.pow(t1, t2) + t1) + " hello world " + (Math.pow(t1, t2) + t1); -(t1 + Math.pow(t2, t2) + t1) + " hello world " + (t1 + Math.pow(t2, t2) + t1); +Math.pow(t1, t2) + " hello world " + Math.pow(t1, t2); +Math.pow(t1, Math.pow(t2, t1)) + " hello world " + Math.pow(t1, Math.pow(t2, t1)); +t1 + Math.pow(t2, t1) + " hello world " + (t1 + Math.pow(t2, t1)); +Math.pow(t1, t2) + t1 + " hello world " + (Math.pow(t1, t2) + t1); +t1 + Math.pow(t2, t2) + t1 + " hello world " + (t1 + Math.pow(t2, t2) + t1); typeof (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + typeof (Math.pow(t1, Math.pow(t2, t1))); diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.js index 733847627067c..cd73e04327f03 100644 --- a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.js +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.js @@ -32,21 +32,21 @@ var t1 = 10; var t2 = 10; var s; // With templateHead -"hello " + (Math.pow(t1, t2)); -"hello " + (Math.pow(t1, Math.pow(t2, t1))); +"hello " + Math.pow(t1, t2); +"hello " + Math.pow(t1, Math.pow(t2, t1)); "hello " + (t1 + Math.pow(t2, t1)); "hello " + (Math.pow(t1, t2) + t1); "hello " + (t1 + Math.pow(t2, t2) + t1); "hello " + typeof (Math.pow(t1, Math.pow(t2, t1))); "hello " + (1 + typeof (Math.pow(t1, Math.pow(t2, t1)))); -"hello " + (Math.pow(t1, t2)) + (Math.pow(t1, t2)); -"hello " + (Math.pow(t1, Math.pow(t2, t1))) + (Math.pow(t1, Math.pow(t2, t1))); +"hello " + Math.pow(t1, t2) + Math.pow(t1, t2); +"hello " + Math.pow(t1, Math.pow(t2, t1)) + Math.pow(t1, Math.pow(t2, t1)); "hello " + (t1 + Math.pow(t2, t1)) + (t1 + Math.pow(t2, t1)); "hello " + (Math.pow(t1, t2) + t1) + (Math.pow(t1, t2) + t1); "hello " + (t1 + Math.pow(t2, t2) + t1) + (t1 + Math.pow(t2, t2) + t1); "hello " + typeof (Math.pow(t1, Math.pow(t2, t1))) + typeof (Math.pow(t1, Math.pow(t2, t1))); -"hello " + (Math.pow(t1, t2)) + " hello world " + (Math.pow(t1, t2)); -"hello " + (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(t1, Math.pow(t2, t1))); +"hello " + Math.pow(t1, t2) + " hello world " + Math.pow(t1, t2); +"hello " + Math.pow(t1, Math.pow(t2, t1)) + " hello world " + Math.pow(t1, Math.pow(t2, t1)); "hello " + (t1 + Math.pow(t2, t1)) + " hello world " + (t1 + Math.pow(t2, t1)); "hello " + (Math.pow(t1, t2) + t1) + " hello world " + (Math.pow(t1, t2) + t1); "hello " + (t1 + Math.pow(t2, t2) + t1) + " hello world " + (t1 + Math.pow(t2, t2) + t1); diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.js index 9c3b937d94bf3..966464b82207a 100644 --- a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.js +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.js @@ -33,22 +33,22 @@ var t1 = 10; var t2 = 10; var s; // With TemplateTail -(Math.pow(t1, t2)) + " world"; -(Math.pow(t1, Math.pow(t2, t1))) + " world"; -(t1 + Math.pow(t2, t1)) + " world"; -(Math.pow(t1, t2) + t1) + " world"; -(t1 + Math.pow(t2, t2) + t1) + " world"; +Math.pow(t1, t2) + " world"; +Math.pow(t1, Math.pow(t2, t1)) + " world"; +t1 + Math.pow(t2, t1) + " world"; +Math.pow(t1, t2) + t1 + " world"; +t1 + Math.pow(t2, t2) + t1 + " world"; typeof (Math.pow(t1, Math.pow(t2, t1))) + " world"; -(1 + typeof (Math.pow(t1, Math.pow(t2, t1)))) + " world"; -"" + (Math.pow(t1, t2)) + (Math.pow(t1, t2)) + " world"; -"" + (Math.pow(t1, Math.pow(t2, t1))) + (Math.pow(t1, Math.pow(t2, t1))) + " world"; +1 + typeof (Math.pow(t1, Math.pow(t2, t1))) + " world"; +"" + Math.pow(t1, t2) + Math.pow(t1, t2) + " world"; +"" + Math.pow(t1, Math.pow(t2, t1)) + Math.pow(t1, Math.pow(t2, t1)) + " world"; "" + (t1 + Math.pow(t2, t1)) + (t1 + Math.pow(t2, t1)) + " world"; "" + (Math.pow(t1, t2) + t1) + (Math.pow(t1, t2) + t1) + " world"; "" + (t1 + Math.pow(t2, t2) + t1) + (t1 + Math.pow(t2, t2) + t1) + " world"; "" + typeof (Math.pow(t1, Math.pow(t2, t1))) + typeof (Math.pow(t1, Math.pow(t2, t1))) + " world"; -(Math.pow(t1, t2)) + " hello world " + (Math.pow(t1, t2)) + " !!"; -(Math.pow(t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(t1, Math.pow(t2, t1))) + " !!"; -(t1 + Math.pow(t2, t1)) + " hello world " + (t1 + Math.pow(t2, t1)) + " !!"; -(Math.pow(t1, t2) + t1) + " hello world " + (Math.pow(t1, t2) + t1) + " !!"; -(t1 + Math.pow(t2, t2) + t1) + " hello world " + (t1 + Math.pow(t2, t2) + t1) + " !!"; +Math.pow(t1, t2) + " hello world " + Math.pow(t1, t2) + " !!"; +Math.pow(t1, Math.pow(t2, t1)) + " hello world " + Math.pow(t1, Math.pow(t2, t1)) + " !!"; +t1 + Math.pow(t2, t1) + " hello world " + (t1 + Math.pow(t2, t1)) + " !!"; +Math.pow(t1, t2) + t1 + " hello world " + (Math.pow(t1, t2) + t1) + " !!"; +t1 + Math.pow(t2, t2) + t1 + " hello world " + (t1 + Math.pow(t2, t2) + t1) + " !!"; typeof (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + typeof (Math.pow(t1, Math.pow(t2, t1))) + " !!"; diff --git a/tests/baselines/reference/emptyArrayBindingPatternParameter04.js b/tests/baselines/reference/emptyArrayBindingPatternParameter04.js index c9819c88f40da..692669169357e 100644 --- a/tests/baselines/reference/emptyArrayBindingPatternParameter04.js +++ b/tests/baselines/reference/emptyArrayBindingPatternParameter04.js @@ -6,7 +6,7 @@ function f([] = [1,2,3,4]) { //// [emptyArrayBindingPatternParameter04.js] function f(_a) { - var _a = [1, 2, 3, 4]; + _a = [1, 2, 3, 4]; var x, y, z; } diff --git a/tests/baselines/reference/emptyObjectBindingPatternParameter04.js b/tests/baselines/reference/emptyObjectBindingPatternParameter04.js index 8c128bb806eda..8d91e8f34c371 100644 --- a/tests/baselines/reference/emptyObjectBindingPatternParameter04.js +++ b/tests/baselines/reference/emptyObjectBindingPatternParameter04.js @@ -6,7 +6,7 @@ function f({} = {a: 1, b: "2", c: true}) { //// [emptyObjectBindingPatternParameter04.js] function f(_a) { - var _a = { a: 1, b: "2", c: true }; + _a = { a: 1, b: "2", c: true }; var x, y, z; } diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.js index 52207ceda96b8..655a9f073a249 100644 --- a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.js +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.js @@ -67,12 +67,12 @@ for (var _u = {}, _v = {}; false; void 0) { } function f(_a, _b, _c) { - var _a = a; - var _b = a; + _a = a; + _b = a; var _d = (_c === void 0 ? a : _c).p, _e = _d === void 0 ? a : _d; return function (_a, _b, _c) { - var _a = a; - var _b = a; + _a = a; + _b = a; var _d = (_c === void 0 ? a : _c).p, _e = _d === void 0 ? a : _d; return a; }; diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES6.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES6.js index 1303ab1e3d0be..98661c440c647 100644 --- a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES6.js +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES6.js @@ -52,31 +52,31 @@ //// [emptyVariableDeclarationBindingPatterns01_ES6.js] (function () { var a; - var { } = a; - let { } = a; - const { } = a; + var {} = a; + let {} = a; + const {} = a; var [] = a; let [] = a; const [] = a; - var { } = a, [] = a; - let { } = a, [] = a; - const { } = a, [] = a; - var { p1: { }, p2: [] } = a; - let { p1: { }, p2: [] } = a; - const { p1: { }, p2: [] } = a; - for (var { } = {}, { } = {}; false; void 0) { + var {} = a, [] = a; + let {} = a, [] = a; + const {} = a, [] = a; + var { p1: {}, p2: [] } = a; + let { p1: {}, p2: [] } = a; + const { p1: {}, p2: [] } = a; + for (var {} = {}, {} = {}; false; void 0) { } - function f({ } = a, [] = a, { p: { } = a } = a) { - return ({ } = a, [] = a, { p: { } = a } = a) => a; + function f({} = a, [] = a, { p: {} = a } = a) { + return ({} = a, [] = a, { p: {} = a } = a) => a; } })(); (function () { const ns = []; - for (var { } of ns) { + for (var {} of ns) { } - for (let { } of ns) { + for (let {} of ns) { } - for (const { } of ns) { + for (const {} of ns) { } for (var [] of ns) { } diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES6.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES6.js index 8b2df68ed709d..9b78828cc49dc 100644 --- a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES6.js +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES6.js @@ -12,9 +12,9 @@ //// [emptyVariableDeclarationBindingPatterns02_ES6.js] (function () { - var { }; - let { }; - const { }; + var {}; + let {}; + const {}; var []; let []; const []; diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js index 097b16b30242b..3e778535bb71b 100644 --- a/tests/baselines/reference/errorSuperCalls.js +++ b/tests/baselines/reference/errorSuperCalls.js @@ -83,9 +83,9 @@ var __extends = (this && this.__extends) || function (d, b) { //super call in class constructor with no base type var NoBase = (function () { function NoBase() { + _super.call(this); //super call in class member initializer with no base type this.p = _super.call(this); - _super.call(this); } //super call in class member function with no base type NoBase.prototype.fn = function () { diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.js index cf97360b23aa5..8c6d9e011f613 100644 --- a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.js +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.js @@ -37,17 +37,17 @@ var s; "" + (Math.pow(-t1, t2) - t1); "" + (Math.pow(-++t1, t2) - t1); "" + (Math.pow(-t1++, t2) - t1); -"" + (Math.pow(!t1, Math.pow(t2, --t1))); -"" + (Math.pow(typeof t1, Math.pow(t2, t1))); +"" + Math.pow(!t1, Math.pow(t2, --t1)); +"" + Math.pow(typeof t1, Math.pow(t2, t1)); "" + (Math.pow(-t1, t2) - t1) + (Math.pow(-t1, t2) - t1); "" + (Math.pow(-++t1, t2) - t1) + (Math.pow(-++t1, t2) - t1); "" + (Math.pow(-t1++, t2) - t1) + (Math.pow(-t1++, t2) - t1); -"" + (Math.pow(!t1, Math.pow(t2, --t1))) + (Math.pow(!t1, Math.pow(t2, --t1))); -"" + (Math.pow(typeof t1, Math.pow(t2, t1))) + (Math.pow(typeof t1, Math.pow(t2, t1))); +"" + Math.pow(!t1, Math.pow(t2, --t1)) + Math.pow(!t1, Math.pow(t2, --t1)); +"" + Math.pow(typeof t1, Math.pow(t2, t1)) + Math.pow(typeof t1, Math.pow(t2, t1)); "" + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + (1 + Math.pow(typeof t1, Math.pow(t2, t1))); -(Math.pow(-t1, t2) - t1) + " hello world " + (Math.pow(-t1, t2) - t1); -(Math.pow(-++t1, t2) - t1) + " hello world " + (Math.pow(-++t1, t2) - t1); -(Math.pow(-t1++, t2) - t1) + " hello world " + (Math.pow(-t1++, t2) - t1); -(Math.pow(!t1, Math.pow(t2, --t1))) + " hello world " + (Math.pow(!t1, Math.pow(t2, --t1))); -(Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(typeof t1, Math.pow(t2, t1))); -(1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))); +Math.pow(-t1, t2) - t1 + " hello world " + (Math.pow(-t1, t2) - t1); +Math.pow(-++t1, t2) - t1 + " hello world " + (Math.pow(-++t1, t2) - t1); +Math.pow(-t1++, t2) - t1 + " hello world " + (Math.pow(-t1++, t2) - t1); +Math.pow(!t1, Math.pow(t2, --t1)) + " hello world " + Math.pow(!t1, Math.pow(t2, --t1)); +Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + Math.pow(typeof t1, Math.pow(t2, t1)); +1 + Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))); diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.js index 486c07f8af677..9ae2d72707814 100644 --- a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.js +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.js @@ -37,18 +37,18 @@ var s; "hello " + (Math.pow(-t1, t2) - t1); "hello " + (Math.pow(-++t1, t2) - t1); "hello " + (Math.pow(-t1++, t2) - t1); -"hello " + (Math.pow(!t1, Math.pow(t2, --t1))); -"hello " + (Math.pow(typeof t1, Math.pow(t2, t1))); +"hello " + Math.pow(!t1, Math.pow(t2, --t1)); +"hello " + Math.pow(typeof t1, Math.pow(t2, t1)); "hello " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))); "hello " + (Math.pow(-t1, t2) - t1) + (Math.pow(-t1, t2) - t1); "hello " + (Math.pow(-++t1, t2) - t1) + (Math.pow(-++t1, t2) - t1); "hello " + (Math.pow(-t1++, t2) - t1) + (Math.pow(-t1++, t2) - t1); -"hello " + (Math.pow(!t1, Math.pow(t2, --t1))) + (Math.pow(!t1, Math.pow(t2, --t1))); -"hello " + (Math.pow(typeof t1, Math.pow(t2, t1))) + (Math.pow(typeof t1, Math.pow(t2, t1))); +"hello " + Math.pow(!t1, Math.pow(t2, --t1)) + Math.pow(!t1, Math.pow(t2, --t1)); +"hello " + Math.pow(typeof t1, Math.pow(t2, t1)) + Math.pow(typeof t1, Math.pow(t2, t1)); "hello " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + (1 + Math.pow(typeof t1, Math.pow(t2, t1))); "hello " + (Math.pow(-t1, t2) - t1) + " hello world " + (Math.pow(-t1, t2) - t1); "hello " + (Math.pow(-++t1, t2) - t1) + " hello world " + (Math.pow(-++t1, t2) - t1); "hello " + (Math.pow(-t1++, t2) - t1) + " hello world " + (Math.pow(-t1++, t2) - t1); -"hello " + (Math.pow(!t1, Math.pow(t2, --t1))) + " hello world " + (Math.pow(!t1, Math.pow(t2, --t1))); -"hello " + (Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(typeof t1, Math.pow(t2, t1))); +"hello " + Math.pow(!t1, Math.pow(t2, --t1)) + " hello world " + Math.pow(!t1, Math.pow(t2, --t1)); +"hello " + Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + Math.pow(typeof t1, Math.pow(t2, t1)); "hello " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))); diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.js index 1641c2bbb8080..c3711ac281ca6 100644 --- a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.js +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.js @@ -33,21 +33,21 @@ var t2 = 10; var s; // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () // With TemplateTail -(Math.pow(-t1, t2) - t1) + " world"; -(Math.pow(-++t1, t2) - t1) + " world"; -(Math.pow(-t1++, t2) - t1) + " world"; -(Math.pow(!t1, Math.pow(t2, --t1))) + " world"; -(Math.pow(typeof t1, Math.pow(t2, t1))) + " world"; -(1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " world"; +Math.pow(-t1, t2) - t1 + " world"; +Math.pow(-++t1, t2) - t1 + " world"; +Math.pow(-t1++, t2) - t1 + " world"; +Math.pow(!t1, Math.pow(t2, --t1)) + " world"; +Math.pow(typeof t1, Math.pow(t2, t1)) + " world"; +1 + Math.pow(typeof t1, Math.pow(t2, t1)) + " world"; "" + (Math.pow(-t1, t2) - t1) + (Math.pow(-t1, t2) - t1) + " world"; "" + (Math.pow(-++t1, t2) - t1) + (Math.pow(-++t1, t2) - t1) + " world"; "" + (Math.pow(-t1++, t2) - t1) + (Math.pow(-t1++, t2) - t1) + " world"; -"" + (Math.pow(!t1, Math.pow(t2, --t1))) + (Math.pow(!t1, Math.pow(t2, --t1))) + " world"; -"" + (Math.pow(typeof t1, Math.pow(t2, t1))) + (Math.pow(typeof t1, Math.pow(t2, t1))) + " world"; +"" + Math.pow(!t1, Math.pow(t2, --t1)) + Math.pow(!t1, Math.pow(t2, --t1)) + " world"; +"" + Math.pow(typeof t1, Math.pow(t2, t1)) + Math.pow(typeof t1, Math.pow(t2, t1)) + " world"; "" + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " world"; -(Math.pow(-t1, t2) - t1) + " hello world " + (Math.pow(-t1, t2) - t1) + " !!"; -(Math.pow(-++t1, t2) - t1) + " hello world " + (Math.pow(-++t1, t2) - t1) + " !!"; -(Math.pow(-t1++, t2) - t1) + " hello world " + (Math.pow(-t1++, t2) - t1) + " !!"; -(Math.pow(!t1, Math.pow(t2, --t1))) + " hello world " + (Math.pow(!t1, Math.pow(t2, --t1))) + " !!"; -(Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(typeof t1, Math.pow(t2, t1))) + " !!"; -(1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " !!"; +Math.pow(-t1, t2) - t1 + " hello world " + (Math.pow(-t1, t2) - t1) + " !!"; +Math.pow(-++t1, t2) - t1 + " hello world " + (Math.pow(-++t1, t2) - t1) + " !!"; +Math.pow(-t1++, t2) - t1 + " hello world " + (Math.pow(-t1++, t2) - t1) + " !!"; +Math.pow(!t1, Math.pow(t2, --t1)) + " hello world " + Math.pow(!t1, Math.pow(t2, --t1)) + " !!"; +Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + Math.pow(typeof t1, Math.pow(t2, t1)) + " !!"; +1 + Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " !!"; diff --git a/tests/baselines/reference/exportNonInitializedVariablesSystem.js b/tests/baselines/reference/exportNonInitializedVariablesSystem.js index 2a8e2022c9515..6c44da04802f4 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesSystem.js +++ b/tests/baselines/reference/exportNonInitializedVariablesSystem.js @@ -35,13 +35,13 @@ export let h1: D = new D; //// [exportNonInitializedVariablesSystem.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 a, b, c, d, A, e, f, B, C, a1, b1, c1, d1, D, e1, f1, g1, h1; return { - setters:[], - execute: function() { + setters: [], + execute: function () { let; A = (function () { function A() { @@ -69,5 +69,5 @@ System.register([], function(exports_1, context_1) { exports_1("g1", g1 = new D); exports_1("h1", h1 = new D); } - } + }; }); diff --git a/tests/baselines/reference/exportNonInitializedVariablesUMD.js b/tests/baselines/reference/exportNonInitializedVariablesUMD.js index 772f63205b692..5cbf6d381b0fe 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesUMD.js +++ b/tests/baselines/reference/exportNonInitializedVariablesUMD.js @@ -35,14 +35,14 @@ export let h1: D = new D; //// [exportNonInitializedVariablesUMD.js] -(function (factory) { +(function (dependencies, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { - define(["require", "exports"], factory); + define(dependencies, factory); } -})(function (require, exports) { +})(["require", "exports"], function (require, exports) { "use strict"; var ; let; diff --git a/tests/baselines/reference/nestedClassDeclaration.js b/tests/baselines/reference/nestedClassDeclaration.js index f9e3d08144d4a..04e2f6348efb6 100644 --- a/tests/baselines/reference/nestedClassDeclaration.js +++ b/tests/baselines/reference/nestedClassDeclaration.js @@ -38,4 +38,5 @@ function foo() { }()); } var x = { - class: C4 }, _a = void 0; + class: C4 +}, _a = void 0; diff --git a/tests/baselines/reference/newWithSpread.js b/tests/baselines/reference/newWithSpread.js index 3b4a726b4d464..275b8698d204e 100644 --- a/tests/baselines/reference/newWithSpread.js +++ b/tests/baselines/reference/newWithSpread.js @@ -129,52 +129,52 @@ var h; var i; // Basic expression new f(1, 2, "string"); -new f(1, 2, ...a); -new f(1, 2, ...a, "string"); +new ((_a = f).bind.apply(_a, [void 0, 1, 2].concat(a)))(); +new ((_b = f).bind.apply(_b, [void 0, 1, 2].concat(a, ["string"])))(); // Multiple spreads arguments -new f2(...a, ...a); -new f(1, 2, ...a, ...a); +new ((_c = f2).bind.apply(_c, [void 0].concat(a, a)))(); +new ((_d = f).bind.apply(_d, [void 0, 1, 2].concat(a, a)))(); // Call expression new f(1, 2, "string")(); -new f(1, 2, ...a)(); -new f(1, 2, ...a, "string")(); +new ((_e = f).bind.apply(_e, [void 0, 1, 2].concat(a)))()(); +new ((_f = f).bind.apply(_f, [void 0, 1, 2].concat(a, ["string"])))()(); // Property access expression new b.f(1, 2, "string"); -new b.f(1, 2, ...a); -new b.f(1, 2, ...a, "string"); +new ((_g = b.f).bind.apply(_g, [void 0, 1, 2].concat(a)))(); +new ((_h = b.f).bind.apply(_h, [void 0, 1, 2].concat(a, ["string"])))(); // Parenthesised expression new (b.f)(1, 2, "string"); -new (b.f)(1, 2, ...a); -new (b.f)(1, 2, ...a, "string"); +new ((_j = (b.f)).bind.apply(_j, [void 0, 1, 2].concat(a)))(); +new ((_k = (b.f)).bind.apply(_k, [void 0, 1, 2].concat(a, ["string"])))(); // Element access expression new d[1].f(1, 2, "string"); -new d[1].f(1, 2, ...a); -new d[1].f(1, 2, ...a, "string"); +new ((_l = d[1].f).bind.apply(_l, [void 0, 1, 2].concat(a)))(); +new ((_m = d[1].f).bind.apply(_m, [void 0, 1, 2].concat(a, ["string"])))(); // Element access expression with a punctuated key new e["a-b"].f(1, 2, "string"); -new e["a-b"].f(1, 2, ...a); -new e["a-b"].f(1, 2, ...a, "string"); +new ((_o = e["a-b"].f).bind.apply(_o, [void 0, 1, 2].concat(a)))(); +new ((_p = e["a-b"].f).bind.apply(_p, [void 0, 1, 2].concat(a, ["string"])))(); // Basic expression new B(1, 2, "string"); -new B(1, 2, ...a); -new B(1, 2, ...a, "string"); +new ((_q = B).bind.apply(_q, [void 0, 1, 2].concat(a)))(); +new ((_r = B).bind.apply(_r, [void 0, 1, 2].concat(a, ["string"])))(); // Property access expression new c["a-b"](1, 2, "string"); -new c["a-b"](1, 2, ...a); -new c["a-b"](1, 2, ...a, "string"); +new ((_s = c["a-b"]).bind.apply(_s, [void 0, 1, 2].concat(a)))(); +new ((_t = c["a-b"]).bind.apply(_t, [void 0, 1, 2].concat(a, ["string"])))(); // Parenthesised expression new (c["a-b"])(1, 2, "string"); -new (c["a-b"])(1, 2, ...a); -new (c["a-b"])(1, 2, ...a, "string"); +new ((_u = (c["a-b"])).bind.apply(_u, [void 0, 1, 2].concat(a)))(); +new ((_v = (c["a-b"])).bind.apply(_v, [void 0, 1, 2].concat(a, ["string"])))(); // Element access expression new g[1]["a-b"](1, 2, "string"); -new g[1]["a-b"](1, 2, ...a); -new g[1]["a-b"](1, 2, ...a, "string"); +new ((_w = g[1]["a-b"]).bind.apply(_w, [void 0, 1, 2].concat(a)))(); +new ((_x = g[1]["a-b"]).bind.apply(_x, [void 0, 1, 2].concat(a, ["string"])))(); // Element access expression with a punctuated key new h["a-b"]["a-b"](1, 2, "string"); -new h["a-b"]["a-b"](1, 2, ...a); -new h["a-b"]["a-b"](1, 2, ...a, "string"); +new ((_y = h["a-b"]["a-b"]).bind.apply(_y, [void 0, 1, 2].concat(a)))(); +new ((_z = h["a-b"]["a-b"]).bind.apply(_z, [void 0, 1, 2].concat(a, ["string"])))(); // Element access expression with a number new i["a-b"][1](1, 2, "string"); -new i["a-b"][1](1, 2, ...a); -new i["a-b"][1](1, 2, ...a, "string"); +new ((_0 = i["a-b"][1]).bind.apply(_0, [void 0, 1, 2].concat(a)))(); +new ((_1 = i["a-b"][1]).bind.apply(_1, [void 0, 1, 2].concat(a, ["string"])))(); diff --git a/tests/baselines/reference/newWithSpreadES6.js b/tests/baselines/reference/newWithSpreadES6.js index b712984f05ea9..dca5264cb3f63 100644 --- a/tests/baselines/reference/newWithSpreadES6.js +++ b/tests/baselines/reference/newWithSpreadES6.js @@ -103,8 +103,7 @@ function f(x, y, ...z) { function f2(...x) { } class B { - constructor(x, y, ...z) { - } + constructor(x, y, ...z) { } } var a; var b; diff --git a/tests/baselines/reference/superCallInConstructorWithNoBaseType.js b/tests/baselines/reference/superCallInConstructorWithNoBaseType.js index 9b0f63ed8710e..9746ab6a9de5d 100644 --- a/tests/baselines/reference/superCallInConstructorWithNoBaseType.js +++ b/tests/baselines/reference/superCallInConstructorWithNoBaseType.js @@ -20,8 +20,8 @@ var C = (function () { }()); var D = (function () { function D(x) { - this.x = x; _super.call(this); // error + this.x = x; } return D; }()); diff --git a/tests/baselines/reference/typeGuardFunctionErrors.js b/tests/baselines/reference/typeGuardFunctionErrors.js index dcd8ffcb265af..f3ff5ffab4afc 100644 --- a/tests/baselines/reference/typeGuardFunctionErrors.js +++ b/tests/baselines/reference/typeGuardFunctionErrors.js @@ -171,6 +171,7 @@ var C = (function (_super) { function hasANonBooleanReturnStatement(x) { return ''; } +function hasTypeGuardTypeInsideTypeGuardType(x) { } is; A; { @@ -231,6 +232,7 @@ function b2(a, A) { if (a === void 0) { a = is; } } ; +function b3() { } is; A; {