Skip to content

Commit 4966c65

Browse files
committed
Revert changes to other baselines
1 parent 01657e2 commit 4966c65

57 files changed

Lines changed: 399 additions & 399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/baselines/reference/assignmentTypeNarrowing.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ x = [true][0];
3737
x; // boolean
3838
_a = [1][0], x = _a === void 0 ? "" : _a;
3939
x; // string | number
40-
(x = ({ x: true }).x);
40+
(x = { x: true }.x);
4141
x; // boolean
42-
(x = ({ y: 1 }).y);
42+
(x = { y: 1 }.y);
4343
x; // number
44-
(_b = ({ x: true }).x, x = _b === void 0 ? "" : _b);
44+
(_b = { x: true }.x, x = _b === void 0 ? "" : _b);
4545
x; // string | boolean
46-
(_c = ({ y: 1 }).y, x = _c === void 0 ? /a/ : _c);
46+
(_c = { y: 1 }.y, x = _c === void 0 ? /a/ : _c);
4747
x; // number | RegExp
4848
var a;
4949
for (var _i = 0, a_1 = a; _i < a_1.length; _i++) {

tests/baselines/reference/asyncMethodWithSuper_es5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ var B = /** @class */ (function (_super) {
9595
// element access (assign)
9696
_super.prototype["x"] = f;
9797
// destructuring assign with property access
98-
(_super.prototype.x = ({ f: f }).f);
98+
(_super.prototype.x = { f: f }.f);
9999
// destructuring assign with element access
100-
(_super.prototype["x"] = ({ f: f }).f);
100+
(_super.prototype["x"] = { f: f }.f);
101101
return [2 /*return*/];
102102
});
103103
});

tests/baselines/reference/blockScopedBindingUsedBeforeDef.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for (var _i = 0, _a = [{}]; _i < _a.length; _i++) {
1515
continue;
1616
}
1717
// 2:
18-
for (var _c = a, a = ({})[_c]; false;)
18+
for (var _c = a, a = {}[_c]; false;)
1919
continue;
2020
// 3:
21-
var _d = b, b = ({})[_d];
21+
var _d = b, b = {}[_d];

tests/baselines/reference/computedPropertiesInDestructuring1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ let [{[foo.toExponential()]: bar7}] = [{bar: "bar"}];
4040
//// [computedPropertiesInDestructuring1.js]
4141
// destructuring in variable declarations
4242
var foo = "bar";
43-
var _a = foo, bar = ({ bar: "bar" })[_a];
44-
var bar2 = ({ bar: "bar" })["bar"];
43+
var _a = foo, bar = { bar: "bar" }[_a];
44+
var bar2 = { bar: "bar" }["bar"];
4545
var foo2 = function () { return "bar"; };
46-
var _b = foo2(), bar3 = ({ bar: "bar" })[_b];
46+
var _b = foo2(), bar3 = { bar: "bar" }[_b];
4747
var _c = foo, bar4 = [{ bar: "bar" }][0][_c];
4848
var _d = foo2(), bar5 = [{ bar: "bar" }][0][_d];
4949
function f1(_a) {
@@ -65,9 +65,9 @@ function f5(_a) {
6565
var _e = foo(), bar6 = [{ bar: "bar" }][0][_e];
6666
var _f = foo.toExponential(), bar7 = [{ bar: "bar" }][0][_f];
6767
// destructuring assignment
68-
(_g = foo, bar = ({ bar: "bar" })[_g]);
69-
(bar2 = ({ bar: "bar" })["bar"]);
70-
(_h = foo2(), bar3 = ({ bar: "bar" })[_h]);
68+
(_g = foo, bar = { bar: "bar" }[_g]);
69+
(bar2 = { bar: "bar" }["bar"]);
70+
(_h = foo2(), bar3 = { bar: "bar" }[_h]);
7171
_j = foo, bar4 = [{ bar: "bar" }][0][_j];
7272
_k = foo2(), bar5 = [{ bar: "bar" }][0][_k];
7373
_l = foo(), bar4 = [{ bar: "bar" }][0][_l];

tests/baselines/reference/computedPropertiesInDestructuring2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ let {[foo2()]: bar3} = {};
44

55
//// [computedPropertiesInDestructuring2.js]
66
var foo2 = function () { return "bar"; };
7-
var _a = foo2(), bar3 = ({})[_a];
7+
var _a = foo2(), bar3 = {}[_a];

tests/baselines/reference/contextuallyTypedBindingInitializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ function g(_a) {
4848
function h(_a) {
4949
var _b = _a.prop, prop = _b === void 0 ? "foo" : _b;
5050
}
51-
var _a = ({ stringIdentity: function (x) { return x; } }).stringIdentity, id = _a === void 0 ? function (arg) { return arg; } : _a;
51+
var _a = { stringIdentity: function (x) { return x; } }.stringIdentity, id = _a === void 0 ? function (arg) { return arg; } : _a;

tests/baselines/reference/contextuallyTypedBindingInitializerNegative.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function f3(_a) {
4040
function ff(_a) {
4141
var _b = _a.nested, nestedRename = _b === void 0 ? { show: function (v) { return v; } } : _b;
4242
}
43-
var _a = ({ stringIdentity: function (x) { return x; } }).stringIdentity, id = _a === void 0 ? function (arg) { return arg.length; } : _a;
43+
var _a = { stringIdentity: function (x) { return x; } }.stringIdentity, id = _a === void 0 ? function (arg) { return arg.length; } : _a;
4444
function g(_a) {
4545
var _b = _a.prop, prop = _b === void 0 ? [101, 1234] : _b;
4646
}

tests/baselines/reference/controlFlowDestructuringDeclaration.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,27 +82,27 @@ function f3() {
8282
z;
8383
}
8484
function f4() {
85-
var x = ({ x: 1 }).x;
85+
var x = { x: 1 }.x;
8686
x;
87-
var y = ({ y: "" }).y;
87+
var y = { y: "" }.y;
8888
y;
89-
var _a = ({ z: undefined }).z, z = _a === void 0 ? "" : _a;
89+
var _a = { z: undefined }.z, z = _a === void 0 ? "" : _a;
9090
z;
9191
}
9292
function f5() {
93-
var x = ({ x: 1 }).x;
93+
var x = { x: 1 }.x;
9494
x;
95-
var y = ({ y: "" }).y;
95+
var y = { y: "" }.y;
9696
y;
97-
var _a = ({ z: undefined }).z, z = _a === void 0 ? "" : _a;
97+
var _a = { z: undefined }.z, z = _a === void 0 ? "" : _a;
9898
z;
9999
}
100100
function f6() {
101-
var x = ({}).x;
101+
var x = {}.x;
102102
x;
103-
var y = ({}).y;
103+
var y = {}.y;
104104
y;
105-
var _a = ({}).z, z = _a === void 0 ? "" : _a;
105+
var _a = {}.z, z = _a === void 0 ? "" : _a;
106106
z;
107107
}
108108
function f7() {

tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ module m {
2323

2424
//// [declarationEmitDestructuringObjectLiteralPattern.js]
2525
var _a = { x: 5, y: "hello" };
26-
var x4 = ({ x4: 5, y4: "hello" }).x4;
27-
var y5 = ({ x5: 5, y5: "hello" }).y5;
26+
var x4 = { x4: 5, y4: "hello" }.x4;
27+
var y5 = { x5: 5, y5: "hello" }.y5;
2828
var _b = { x6: 5, y6: "hello" }, x6 = _b.x6, y6 = _b.y6;
29-
var a1 = ({ x7: 5, y7: "hello" }).x7;
30-
var b1 = ({ x8: 5, y8: "hello" }).y8;
29+
var a1 = { x7: 5, y7: "hello" }.x7;
30+
var b1 = { x8: 5, y8: "hello" }.y8;
3131
var _c = { x9: 5, y9: "hello" }, a2 = _c.x9, b2 = _c.y9;
3232
var _d = { a: 1, b: { a: "hello", b: { a: true } } }, x11 = _d.a, _e = _d.b, y11 = _e.a, z11 = _e.b.a;
3333
function f15() {

tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern1.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ var { x9: a2, y9: b2 } = { x9: 5, y9: "hello" };
99

1010
//// [declarationEmitDestructuringObjectLiteralPattern1.js]
1111
var _a = { x: 5, y: "hello" };
12-
var x4 = ({ x4: 5, y4: "hello" }).x4;
13-
var y5 = ({ x5: 5, y5: "hello" }).y5;
12+
var x4 = { x4: 5, y4: "hello" }.x4;
13+
var y5 = { x5: 5, y5: "hello" }.y5;
1414
var _b = { x6: 5, y6: "hello" }, x6 = _b.x6, y6 = _b.y6;
15-
var a1 = ({ x7: 5, y7: "hello" }).x7;
16-
var b1 = ({ x8: 5, y8: "hello" }).y8;
15+
var a1 = { x7: 5, y7: "hello" }.x7;
16+
var b1 = { x8: 5, y8: "hello" }.y8;
1717
var _c = { x9: 5, y9: "hello" }, a2 = _c.x9, b2 = _c.y9;
1818

1919

0 commit comments

Comments
 (0)