js/src/tests/js1_8_5/regress/regress-646820-2.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:151ce0383b5f
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3
4 (function () {
5 var obj = {prop: 1};
6 var [x, {prop: y}] = [function () y, obj];
7 assertEq(y, 1);
8 assertEq(x(), 1);
9 })();
10
11 reportCompare(0, 0, 'ok');

mercurial