From cad3f6372340ccd9d15da9eae5d123d478f446d3 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 24 Nov 2014 01:01:13 +1100 Subject: [PATCH] update assignment expression destructuring test --- .../es6-destructuring/assignment-expression/expected.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/fixtures/transformation/es6-destructuring/assignment-expression/expected.js b/test/fixtures/transformation/es6-destructuring/assignment-expression/expected.js index 85c8a9ff0e..882a44fb84 100644 --- a/test/fixtures/transformation/es6-destructuring/assignment-expression/expected.js +++ b/test/fixtures/transformation/es6-destructuring/assignment-expression/expected.js @@ -1,2 +1,9 @@ +"use strict"; + +var _ref; +var _toArray = function (arr) { + return Array.isArray(arr) ? arr : Array.from(arr); +}; + var _temp; -console.log((_temp = [1, 2, 3], x = _temp[0], _temp)); +console.log((_temp = [123], _ref = _toArray(_temp), x = _ref[0], _temp));