Closed Bug 813172 Opened 13 years ago Closed 13 years ago

Evaluating 'arguments' as a watch expression always yields an empty pseudo-array

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox19 fixed)

RESOLVED FIXED
Firefox 20
Tracking Status
firefox19 --- fixed

People

(Reporter: vporof, Assigned: vporof)

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(2 files)

No description provided.
Attached patch v1Splinter Review
Attachment #683149 - Flags: review?(rcampbell)
Comment on attachment 683149 [details] [diff] [review] v1 that's probably accurate, isn't it? Since we're evaling inside the scope of that function, arguments is likely just an empty array. Not sure we need to special-case this or not.
(In reply to Rob Campbell [:rc] (:robcee) from comment #2) > Comment on attachment 683149 [details] [diff] [review] > v1 > > that's probably accurate, isn't it? Since we're evaling inside the scope of > that function, arguments is likely just an empty array. Not sure we need to > special-case this or not. Well, what we're doing is a hack (avoid multiple client evaluation requests), and we shouldn't expose this fact. Neither Chrome nor Firebug has this behavior.
Comment on attachment 683149 [details] [diff] [review] v1 alrighty then. Maybe this is worthy of a comment around the arguments argument and the regex to help future generations.
Attachment #683149 - Flags: review?(rcampbell) → review+
(In reply to Rob Campbell [:rc] (:robcee) from comment #4) > Comment on attachment 683149 [details] [diff] [review] > v1 > > alrighty then. Maybe this is worthy of a comment around the arguments > argument and the regex to help future generations. Thanks. The regex was there before this patch, but ok.
Attached patch v1.1Splinter Review
Added comments.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Whiteboard: [land-in-fx-team]
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Comment on attachment 683552 [details] [diff] [review] v1.1 [Approval Request Comment] Bug caused by (feature/regressing bug #): Although a remote use case, evaluating "arguments" (incorrectly) yields an empty pseduo-array. User impact if declined: Almost none, this patch affects a developer tool, however it's a brand new feature that is likely to get some attention. Testing completed (on m-c, etc.): fx-team and m-c Risk to taking this patch (and alternatives if risky): None. String or UUID changes made by this patch: None.
Attachment #683552 - Flags: approval-mozilla-aurora?
Attachment #683552 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
New feature, low risk, developer tools only, approving.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: