summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/extensions/bug496985.js
blob: be1dd19cf88eb0af25b680a03cc6ad0297241a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var a = function() {
    return function ({x: arguments}) {
        return arguments;
    }
}
var b = eval(uneval(a));

assertEq(a()({x: 1}), 1);
assertEq(b()({x: 1}), 1);

if (typeof reportCompare === "function")
    reportCompare(true, true);