Update baselines

Parameter properties in the error case now move below the super call.
This is an improvement because it means the code is more likely to execute
correctly.
This commit is contained in:
Nathan Shively-Sanders 2020-01-24 11:10:59 -08:00
parent 32727d5b60
commit 7109fd8fa9
4 changed files with 8 additions and 8 deletions

View file

@ -214,9 +214,9 @@ var K = /** @class */ (function (_super) {
__extends(K, _super);
function K(p1) {
var _this = this;
_this.p1 = p1;
var i = 0;
_this = _super.call(this) || this;
_this.p1 = p1;
return _this;
}
return K;
@ -234,9 +234,9 @@ var M = /** @class */ (function (_super) {
__extends(M, _super);
function M(p1) {
var _this = this;
_this.p1 = p1;
var i = 0;
_this = _super.call(this) || this;
_this.p1 = p1;
return _this;
}
return M;

View file

@ -128,9 +128,9 @@ var Derived2 = /** @class */ (function (_super) {
__extends(Derived2, _super);
function Derived2(y) {
var _this = this;
_this.y = y;
var a = 1;
_this = _super.call(this) || this; // error
_this.y = y;
return _this;
}
return Derived2;
@ -149,9 +149,9 @@ var Derived4 = /** @class */ (function (_super) {
__extends(Derived4, _super);
function Derived4(y) {
var _this = this;
_this.a = 1;
var b = 2;
_this = _super.call(this) || this; // error
_this.a = 1;
return _this;
}
return Derived4;
@ -181,10 +181,10 @@ var Derived7 = /** @class */ (function (_super) {
__extends(Derived7, _super);
function Derived7(y) {
var _this = this;
_this.a = 1;
_this.a = 3;
_this.b = 3;
_this = _super.call(this) || this; // error
_this.a = 1;
return _this;
}
return Derived7;
@ -210,10 +210,10 @@ var Derived9 = /** @class */ (function (_super) {
__extends(Derived9, _super);
function Derived9(y) {
var _this = this;
_this.a = 1;
_this.a = 3;
_this.b = 3;
_this = _super.call(this) || this; // error
_this.a = 1;
return _this;
}
return Derived9;

View file

@ -15,9 +15,9 @@ class B {
;
class A extends B {
constructor() {
_x.set(this, void 0);
void 0; // Error: 'super' call must come first
super();
_x.set(this, void 0);
}
}
_x = new WeakMap();

View file

@ -103,9 +103,9 @@ var D = /** @class */ (function (_super) {
__extends(D, _super);
function D() {
var _this = this;
_this.s = 9;
var x = 1; // Error
_this = _super.call(this) || this;
_this.s = 9;
"use strict";
return _this;
}