summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/extensions/uneval/bug496985.js
blob: 0f68288cc5f0ff26475adf99eb237a2705c2c458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |reftest| skip-if(!this.uneval)

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);