Bug 3878 - arguments object should be an object not an array
Summary: arguments object should be an object not an array
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 412
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on: 3881
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-06 13:17 PDT by Geoffrey Garen
Modified: 2005-07-08 09:27 PDT (History)
0 users

See Also:


Attachments
Patch (1.88 KB, patch)
2005-07-06 13:22 PDT, Geoffrey Garen
no flags Details | Formatted Diff | Diff
Patch w/updated test results (94.33 KB, patch)
2005-07-06 13:53 PDT, Geoffrey Garen
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Garen 2005-07-06 13:17:29 PDT
Causes the following test to fail:
        ecma_3/Function/arguments-001.js

Reason for failure: inability to delete arguments.length

Spec: ECMA 10.1.6

"The activation object is initialised with a property with name arguments and
attributes { DontDelete }. The initial value of this property is the arguments object described below"
Comment 1 Geoffrey Garen 2005-07-06 13:22:23 PDT
Created attachment 2834 [details]
Patch

This patch also removes the ArgumentsImp constructor with no argument list
[ArgumentsImp(ExecState *exec, FunctionImp *func)], since it's never used, and
it's unclear when you would want to use it.
Comment 2 Geoffrey Garen 2005-07-06 13:53:48 PDT
Created attachment 2835 [details]
Patch w/updated test results

This patch includes an update to the expected test results.
Comment 3 Maciej Stachowiak 2005-07-07 00:25:44 PDT
Comment on attachment 2835 [details]
Patch w/updated test results

r=me