From 129b8ad8b041f34e5e06c09f0b94793d987133a0 Mon Sep 17 00:00:00 2001 From: Yui T Date: Mon, 30 Mar 2015 16:28:10 -0700 Subject: [PATCH] Update baselines from merging with master --- .../declarationEmitDestructuring2.js | 28 ++----------------- .../declarationEmitDestructuring3.js | 6 +--- .../declarationEmitDestructuring4.js | 18 ++---------- .../declarationEmitDestructuring5.js | 8 +----- 4 files changed, 8 insertions(+), 52 deletions(-) diff --git a/tests/baselines/reference/declarationEmitDestructuring2.js b/tests/baselines/reference/declarationEmitDestructuring2.js index f6d3d17abe..eeabbf1ff3 100644 --- a/tests/baselines/reference/declarationEmitDestructuring2.js +++ b/tests/baselines/reference/declarationEmitDestructuring2.js @@ -6,38 +6,16 @@ function h1([a, [b], [[c]], {x = 10, y = [1, 2, 3], z: {a1, b1}}]){ } //// [declarationEmitDestructuring2.js] function f(_a) { - var _b = _a === void 0 ? { - x: 10, - y: [ - 2, - 4, - 6, - 8 - ] - } : _a, _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, _e = _d === void 0 ? [ - 1, - 2, - 3, - 4 - ] : _d, a = _e[0], b = _e[1], c = _e[2], d = _e[3]; + var _b = _a === void 0 ? { x: 10, y: [2, 4, 6, 8] } : _a, _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, _e = _d === void 0 ? [1, 2, 3, 4] : _d, a = _e[0], b = _e[1], c = _e[2], d = _e[3]; } function g(_a) { - var _b = _a === void 0 ? [ - 1, - 2, - 3, - 4 - ] : _a, a = _b[0], b = _b[1], c = _b[2], d = _b[3]; + var _b = _a === void 0 ? [1, 2, 3, 4] : _a, a = _b[0], b = _b[1], c = _b[2], d = _b[3]; } function h(_a) { var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, a = _d[0], b = _d[1], c = _d[2], _e = _b.z, a1 = _e.a1, b1 = _e.b1; } function h1(_a) { - var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, y = _d === void 0 ? [ - 1, - 2, - 3 - ] : _d, _e = _b.z, a1 = _e.a1, b1 = _e.b1; + var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, y = _d === void 0 ? [1, 2, 3] : _d, _e = _b.z, a1 = _e.a1, b1 = _e.b1; } diff --git a/tests/baselines/reference/declarationEmitDestructuring3.js b/tests/baselines/reference/declarationEmitDestructuring3.js index 66f6b071a8..b21c63203c 100644 --- a/tests/baselines/reference/declarationEmitDestructuring3.js +++ b/tests/baselines/reference/declarationEmitDestructuring3.js @@ -9,11 +9,7 @@ function bar(_a) { var x = _a[0], z = _a[1], w = _a.slice(2); } function foo(_a) { - var _b = _a === void 0 ? [ - 1, - "string", - true - ] : _a, x = _b[0], y = _b.slice(1); + var _b = _a === void 0 ? [1, "string", true] : _a, x = _b[0], y = _b.slice(1); } diff --git a/tests/baselines/reference/declarationEmitDestructuring4.js b/tests/baselines/reference/declarationEmitDestructuring4.js index 81d1707b8e..f5d9df0917 100644 --- a/tests/baselines/reference/declarationEmitDestructuring4.js +++ b/tests/baselines/reference/declarationEmitDestructuring4.js @@ -19,28 +19,16 @@ function baz(_a) { var ; } function baz1(_a) { - var _b = _a === void 0 ? [ - 1, - 2, - 3 - ] : _a; + var _b = _a === void 0 ? [1, 2, 3] : _a; } function baz2(_a) { - var _b = (_a === void 0 ? [ - [ - 1, - 2, - 3 - ] - ] : _a)[0]; + var _b = (_a === void 0 ? [[1, 2, 3]] : _a)[0]; } function baz3(_a) { var ; } function baz4(_a) { - var _b = _a === void 0 ? { - x: 10 - } : _a; + var _b = _a === void 0 ? { x: 10 } : _a; } diff --git a/tests/baselines/reference/declarationEmitDestructuring5.js b/tests/baselines/reference/declarationEmitDestructuring5.js index f0602206a1..32c9b5667d 100644 --- a/tests/baselines/reference/declarationEmitDestructuring5.js +++ b/tests/baselines/reference/declarationEmitDestructuring5.js @@ -16,13 +16,7 @@ function bar(_a) { var z = _a[0]; } function bar1(_a) { - var _b = _a === void 0 ? [ - 1, - 3, - 4, - 6, - 7 - ] : _a, z = _b[0]; + var _b = _a === void 0 ? [1, 3, 4, 6, 7] : _a, z = _b[0]; } function bar2(_a) { var z = _a[2];