Closed Bug 37211 Opened 24 years ago Closed 24 years ago

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

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: georg.maass, Assigned: rogerl)

Details

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.
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
Closed: 24 years ago
Resolution: --- → INVALID
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.