function arguments are not an array. Missing slice&co.

VERIFIED INVALID

Status

()

P3
normal
VERIFIED INVALID
19 years ago
17 years ago

People

(Reporter: georg.maass, Assigned: rogerl)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
The function argumenst array is an array, when using NN4.x but not when using 
M16. It haa a length prorpety and elements like an array, but it does not 
support the slice method and other features of an real array.

Comment 1

19 years ago
Sorry for the delay - I have just taken over QA for the JavaScript Engine.

I am marking this one as "Invalid". NN4.x uses JavaScript 1.4, which adheres to 
the ECMA2 standard. By contrast, M16 uses JavaScript1.5, which adheres to ECMA3. 
According to this standard, "when control enters an execution context for 
function code, an arguments object is created ..." (ECMAScript Language 
Specifications, Edition 3, 13 October 1999, Section 10.1.8).

So in this newer version of the language it is meant to be an Arguments object, 
not an array. Section 10.1.8 goes on to describe the properties of this object,
which include a length property, etc.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID

Comment 2

18 years ago
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.