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

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

reportCompare(0, 0, 'ok');