Closed
Bug 855030
Opened 12 years ago
Closed 12 years ago
Parser.jsm should support fat arrow functions
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 22
People
(Reporter: vporof, Assigned: vporof)
Details
Attachments
(2 files)
5.71 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
5.71 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #729741 -
Flags: review?(past)
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Comment on attachment 729741 [details] [diff] [review]
v1
Review of attachment 729741 [details] [diff] [review]:
-----------------------------------------------------------------
That was fast!
::: browser/devtools/shared/Parser.jsm
@@ +1559,5 @@
> /**
> + * An arrow expression.
> + *
> + * interface FunctionExpression <: Function, Expression {
> + * type: "FunctionExpression";
ArrowExpression in both places.
@@ +1568,5 @@
> + * generator: boolean;
> + * expression: boolean;
> + * }
> + */
> + ArrowExpression: function STV_ArrowExpression(aNode, aParent, aCallbacks) {
You could make FunctionExpression call this one to cut down on code size, but I think the whole file could use a similar refactoring, so we could do it in a followup.
Attachment #729741 -
Flags: review?(past) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Panos Astithas [:past] from comment #3)
>
> You could make FunctionExpression call this one to cut down on code size,
> but I think the whole file could use a similar refactoring, so we could do
> it in a followup.
Theoretically yes, I could even reduce both ArrowExpression and FunctionExpression to call FunctionDeclaration, as long as I don't always assume that they have a non-null identifier, but you never know how these language features may evolve, so I think the DRY approach is less pertinent here. Let's see what happens wrt thin arrow functions (if that ever becomes a reality), how the spec evolves etc.
Assignee | ||
Updated•12 years ago
|
Whiteboard: [land-in-fx-team]
Assignee | ||
Updated•12 years ago
|
Priority: -- → P3
Assignee | ||
Comment 6•12 years ago
|
||
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 22
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•