From dd27139f39795fd0d83e8189c7a932364afe8044 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Sat, 3 Sep 2016 00:31:09 -0700 Subject: [PATCH] Accepted baselines. --- tests/baselines/reference/es6ClassTest.js | 2 +- tests/baselines/reference/optionalParamArgsTest.js | 2 +- tests/baselines/reference/superAccess2.js | 2 +- tests/baselines/reference/superInConstructorParam1.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js index d0879152544..067e57c2581 100644 --- a/tests/baselines/reference/es6ClassTest.js +++ b/tests/baselines/reference/es6ClassTest.js @@ -102,8 +102,8 @@ var Bar = (function () { var Foo = (function (_super) { __extends(Foo, _super); function Foo(x, y, z) { - var _this = _super.call(this, x) || this; if (z === void 0) { z = 0; } + var _this = _super.call(this, x) || this; _this.y = y; _this.z = z; _this.gar = 0; diff --git a/tests/baselines/reference/optionalParamArgsTest.js b/tests/baselines/reference/optionalParamArgsTest.js index e93058d71d2..374b0956509 100644 --- a/tests/baselines/reference/optionalParamArgsTest.js +++ b/tests/baselines/reference/optionalParamArgsTest.js @@ -161,8 +161,8 @@ var C1 = (function () { var C2 = (function (_super) { __extends(C2, _super); function C2(v2) { - var _this = _super.call(this, v2) || this; if (v2 === void 0) { v2 = 6; } + var _this = _super.call(this, v2) || this; return _this; } return C2; diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js index 54c59978151..da19770584a 100644 --- a/tests/baselines/reference/superAccess2.js +++ b/tests/baselines/reference/superAccess2.js @@ -41,10 +41,10 @@ var Q = (function (_super) { __extends(Q, _super); // Super is not allowed in constructor args function Q(z, zz, zzz) { - var _this = _super.call(this) || this; if (z === void 0) { z = _super.; } if (zz === void 0) { zz = _super.; } if (zzz === void 0) { zzz = function () { return _super.; }; } + var _this = _super.call(this) || this; _this.z = z; _this.xx = _super.prototype.; return _this; diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js index 7519a8253ec..8c99b649917 100644 --- a/tests/baselines/reference/superInConstructorParam1.js +++ b/tests/baselines/reference/superInConstructorParam1.js @@ -27,8 +27,8 @@ var B = (function () { var C = (function (_super) { __extends(C, _super); function C(a) { - var _this; if (a === void 0) { a = _super.foo.call(_this); } + var _this; return _this; } return C;