update assignment expression destructuring test

This commit is contained in:
Sebastian McKenzie 2014-11-24 01:01:13 +11:00
parent eceda64528
commit cad3f63723

View File

@ -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));