From 005362a615c87511b818da22491bbde9715d9202 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 4 Jan 2015 19:48:14 +1100 Subject: [PATCH] update tests to 2.4.9 fixes --- .../array-expression-single-if/expected.js | 6 +++--- .../multiple-if/expected.js | 6 +++--- .../single-if/expected.js | 6 +++--- .../object-getter-memoization/expected.js | 18 ++++++++++++++++-- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/test/fixtures/transformation/es7-array-comprehension/array-expression-single-if/expected.js b/test/fixtures/transformation/es7-array-comprehension/array-expression-single-if/expected.js index 0f3f625138..37496b18dc 100644 --- a/test/fixtures/transformation/es7-array-comprehension/array-expression-single-if/expected.js +++ b/test/fixtures/transformation/es7-array-comprehension/array-expression-single-if/expected.js @@ -4,9 +4,9 @@ var arr = (function () { var _arr = []; for (var _iterator = [1, 2, 3][Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { - var i = _step.value; - if (i > 1) { - _arr.push(i * i); + var _i = _step.value; + if (_i > 1) { + _arr.push(_i * _i); } } diff --git a/test/fixtures/transformation/es7-array-comprehension/multiple-if/expected.js b/test/fixtures/transformation/es7-array-comprehension/multiple-if/expected.js index 6b486b45f5..c5ba3b5331 100644 --- a/test/fixtures/transformation/es7-array-comprehension/multiple-if/expected.js +++ b/test/fixtures/transformation/es7-array-comprehension/multiple-if/expected.js @@ -6,9 +6,9 @@ var seattlers = (function () { for (var _iterator = countries[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { var customers = _step.value; for (var _iterator2 = customers[Symbol.iterator](), _step2; !(_step2 = _iterator2.next()).done;) { - var c = _step2.value; - if (c.city == "Seattle") { - _seattlers.push({ name: c.name, age: c.age }); + var _c = _step2.value; + if (_c.city == "Seattle") { + _seattlers.push({ name: _c.name, age: _c.age }); } } } diff --git a/test/fixtures/transformation/es7-array-comprehension/single-if/expected.js b/test/fixtures/transformation/es7-array-comprehension/single-if/expected.js index 6e95f9cadc..25915fc7f0 100644 --- a/test/fixtures/transformation/es7-array-comprehension/single-if/expected.js +++ b/test/fixtures/transformation/es7-array-comprehension/single-if/expected.js @@ -4,9 +4,9 @@ var arr = (function () { var _arr = []; for (var _iterator = nums[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { - var i = _step.value; - if (i > 1) { - _arr.push(i * i); + var _i = _step.value; + if (_i > 1) { + _arr.push(_i * _i); } } diff --git a/test/fixtures/transformation/playground/object-getter-memoization/expected.js b/test/fixtures/transformation/playground/object-getter-memoization/expected.js index 5478190460..49f02f0550 100644 --- a/test/fixtures/transformation/playground/object-getter-memoization/expected.js +++ b/test/fixtures/transformation/playground/object-getter-memoization/expected.js @@ -16,13 +16,27 @@ var _defineProperty = function (obj, key, value) { var Foo = function Foo() {}; -_prototypeProperties(Foo, null, _defineProperty({}, bar, { +_prototypeProperties(Foo, null, _defineProperty({ + bar: { + get: function () { + return _defineProperty(this, "bar", complex()).bar; + }, + enumerable: true + } +}, bar, { get: function () { return _defineProperty(this, bar, complex())[bar]; }, enumerable: true })); -var foo = _defineProperty({}, bar, function () { +var foo = _defineProperty(Object.defineProperties({}, { + bar: { + get: function () { + return _defineProperty(this, "bar", complex()).bar; + }, + enumerable: true + } +}), bar, function () { return _defineProperty(this, bar, complex())[bar]; });