Consider default parameters for array pattern.

This commit is contained in:
Artem Yavorsky
2017-03-18 15:42:39 +02:00
parent b5bb89b30a
commit 06f67e1ad3
3 changed files with 6 additions and 3 deletions

View File

@@ -1 +1 @@
export const [ foo, bar ] = [];
export const [foo, bar = 2] = [1];

View File

@@ -1,5 +1,5 @@
"use strict";
const [foo, bar] = [];
const [foo, bar = 2] = [1];
exports.foo = foo;
exports.bar = bar;