Debian Codegraph @

rhino/testsrc/tests/ecma/ExecutionContexts/10.1.8-3.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 gTestfile = '10.1.8-3.js';
7
8 /**
9 File Name: 10.1.8-3
10 ECMA Section: Arguments Object
11 Description:
12
13 The [[Prototype]] of the arguments object is to the original Object
14 prototype object, the one that is the initial value of Object.prototype
15 (section 15.2.3.1).
16
17 ...
18
19 Test that "typeof arguments" is thus "object".
20
21 */
22
23 var SECTION = "10.1.8-2";
24 var VERSION = "ECMA_1";
25 startTest();
26 var TITLE = "Arguments Object";
27 writeHeaderToLog( SECTION + " "+ TITLE);
28
29 var expected = "object";
30 var actual = (function () { return typeof arguments; })();
31 reportCompare(expected, actual, "typeof arguments == object");
32