Test:destructuring array initialisers refer to previous elements

This commit is contained in:
Nathan Shively-Sanders 2016-12-05 16:27:59 -08:00
parent 225d6d6aef
commit 7a9c11c72b

View file

@ -0,0 +1,4 @@
const [a, b = a] = [1]; // ok
const [a, b = a, c = c] = [1]; // error for c
const [a, b = a, c = d, d = a] = [1]; // error for c