Skip to content

Commit 4affef2

Browse files
committed
update baselines
1 parent c691269 commit 4affef2

7 files changed

+70
-35
lines changed

Diff for: tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ class B extends A {
1212
}
1313

1414
//// [captureSuperPropertyAccessInSuperCall01.js]
15-
var __extends = (this && this.__extends) || function (d, b) {
16-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
17-
function __() { this.constructor = d; }
18-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19-
};
15+
var __extends = (this && this.__extends) || (function () {
16+
var extendStatics = Object.setPrototypeOf ||
17+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19+
return function (d, b) {
20+
extendStatics(d, b);
21+
function __() { this.constructor = d; }
22+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23+
};
24+
})();
2025
var A = (function () {
2126
function A(f) {
2227
}

Diff for: tests/baselines/reference/decoratorOnClassConstructor4.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ class C extends A {
1515
}
1616

1717
//// [decoratorOnClassConstructor4.js]
18-
var __extends = (this && this.__extends) || function (d, b) {
19-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
20-
function __() { this.constructor = d; }
21-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22-
};
18+
var __extends = (this && this.__extends) || (function () {
19+
var extendStatics = Object.setPrototypeOf ||
20+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
22+
return function (d, b) {
23+
extendStatics(d, b);
24+
function __() { this.constructor = d; }
25+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26+
};
27+
})();
2328
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2429
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2530
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

Diff for: tests/baselines/reference/jsxInExtendsClause.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ class Foo extends createComponentClass(() => class extends React.Component<{}, {
1212
}) {}
1313

1414
//// [jsxInExtendsClause.js]
15-
var __extends = (this && this.__extends) || function (d, b) {
16-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
17-
function __() { this.constructor = d; }
18-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19-
};
15+
var __extends = (this && this.__extends) || (function () {
16+
var extendStatics = Object.setPrototypeOf ||
17+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19+
return function (d, b) {
20+
extendStatics(d, b);
21+
function __() { this.constructor = d; }
22+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23+
};
24+
})();
2025
var Foo = (function (_super) {
2126
__extends(Foo, _super);
2227
function Foo() {

Diff for: tests/baselines/reference/jsxViaImport.2.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ class TestComponent extends React.Component<any, {}> {
2525

2626
//// [consumer.jsx]
2727
"use strict";
28-
var __extends = (this && this.__extends) || function (d, b) {
29-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
30-
function __() { this.constructor = d; }
31-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32-
};
28+
var __extends = (this && this.__extends) || (function () {
29+
var extendStatics = Object.setPrototypeOf ||
30+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32+
return function (d, b) {
33+
extendStatics(d, b);
34+
function __() { this.constructor = d; }
35+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36+
};
37+
})();
3338
/// <reference path="component.d.ts" />
3439
var BaseComponent_1 = require("BaseComponent");
3540
var TestComponent = (function (_super) {

Diff for: tests/baselines/reference/newTarget.es5.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ const O = {
3333

3434

3535
//// [newTarget.es5.js]
36-
var __extends = (this && this.__extends) || function (d, b) {
37-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
38-
function __() { this.constructor = d; }
39-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40-
};
36+
var __extends = (this && this.__extends) || (function () {
37+
var extendStatics = Object.setPrototypeOf ||
38+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
39+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
40+
return function (d, b) {
41+
extendStatics(d, b);
42+
function __() { this.constructor = d; }
43+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
44+
};
45+
})();
4146
var A = (function () {
4247
function A() {
4348
var _newTarget = this.constructor;

Diff for: tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ class SubclassOfSubclass extends Subclass {
1717

1818

1919
//// [subSubClassCanAccessProtectedConstructor.js]
20-
var __extends = (this && this.__extends) || function (d, b) {
21-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
22-
function __() { this.constructor = d; }
23-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24-
};
20+
var __extends = (this && this.__extends) || (function () {
21+
var extendStatics = Object.setPrototypeOf ||
22+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24+
return function (d, b) {
25+
extendStatics(d, b);
26+
function __() { this.constructor = d; }
27+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28+
};
29+
})();
2530
var Base = (function () {
2631
function Base() {
2732
this.instance1 = new Base(); // allowed

Diff for: tests/baselines/reference/superPropertyAccessInSuperCall01.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ class B extends A {
1212
}
1313

1414
//// [superPropertyAccessInSuperCall01.js]
15-
var __extends = (this && this.__extends) || function (d, b) {
16-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
17-
function __() { this.constructor = d; }
18-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19-
};
15+
var __extends = (this && this.__extends) || (function () {
16+
var extendStatics = Object.setPrototypeOf ||
17+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19+
return function (d, b) {
20+
extendStatics(d, b);
21+
function __() { this.constructor = d; }
22+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23+
};
24+
})();
2025
var A = (function () {
2126
function A(f) {
2227
}

0 commit comments

Comments
 (0)