summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-672893.js
blob: 497b6132f02ffb5b68721d3c5d771b7bbc22c152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

function f() {
    return function () { return function () { return function () {
    return function () { return function () { return function () {
    return function () { return function () { return function () {
    return function () { return function () { return function () {
    return function () { return function () { return function (a) {
        var v = a;
	assertEq(v, 42);
	return function() { return v; };
    }; }; }; }; }; }; }; }; }; }; }; }; }; }; };
};

assertEq(f()()()()()()()()()()()()()()()(42)(), 42);

reportCompare(0, 0, 'ok');