michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: /** michael@0: File Name: 10.1.8-3 michael@0: ECMA Section: Arguments Object michael@0: Description: michael@0: michael@0: The [[Prototype]] of the arguments object is to the original Object michael@0: prototype object, the one that is the initial value of Object.prototype michael@0: (section 15.2.3.1). michael@0: michael@0: ... michael@0: michael@0: Test that "typeof arguments" is thus "object". michael@0: michael@0: */ michael@0: michael@0: var SECTION = "10.1.8-2"; michael@0: var VERSION = "ECMA_1"; michael@0: startTest(); michael@0: var TITLE = "Arguments Object"; michael@0: writeHeaderToLog( SECTION + " "+ TITLE); michael@0: michael@0: var expected = "object"; michael@0: var actual = (function () { return typeof arguments; })(); michael@0: reportCompare(expected, actual, "typeof arguments == object"); michael@0: