update assignment expression destructuring test
This commit is contained in:
parent
eceda64528
commit
cad3f63723
@ -1,2 +1,9 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
var _ref;
|
||||||
|
var _toArray = function (arr) {
|
||||||
|
return Array.isArray(arr) ? arr : Array.from(arr);
|
||||||
|
};
|
||||||
|
|
||||||
var _temp;
|
var _temp;
|
||||||
console.log((_temp = [1, 2, 3], x = _temp[0], _temp));
|
console.log((_temp = [123], _ref = _toArray(_temp), x = _ref[0], _temp));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user