summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-646820-1.js
blob: 6a03ec4f1ed771d64a2302c31a108bfb1330e0b1 (plain)
1
2
3
4
5
6
7
8
9
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

(function () {
    var [x, y] = [1, function () { return x; }];
    assertEq(y(), 1);
})();

reportCompare(0, 0, 'ok');