summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-602621.js
blob: bf9eaffecb080a6f03d832180f1e298c2a427dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

function test(arg) {
    eval(arg);
    {
        function arguments() { return 1; }
    }
    return arguments;
}

reportCompare("function", typeof test("42"), "function sub-statement must override arguments");