summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-646820-2.js
blob: a6c9d5a818dfcd33e853dd57c83083323c014d3e (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 () y, obj];
    assertEq(y, 1);
    assertEq(x(), 1);
})();

reportCompare(0, 0, 'ok');