Closed
Bug 1475464
Opened 7 years ago
Closed 7 years ago
Add more description about FunctionScope data
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
1.78 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
There are many kind of bindings in FunctionScope, and it's complicated.
we need some more description.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8991794 -
Flags: review?(jdemooij)
Comment 2•7 years ago
|
||
Comment on attachment 8991794 [details] [diff] [review]
Add more description about FunctionScope data.
Review of attachment 8991794 [details] [diff] [review]:
-----------------------------------------------------------------
That's useful, thanks!
::: js/src/vm/Scope.h
@@ +589,5 @@
> //
> + // Rest parameter binding is also included in positional formals.
> + // This also becomes nullptr if destructuring.
> + //
> + // The number of positional formals equals to function.length if
Nit: s/equals to/is equal to/
@@ +593,5 @@
> + // The number of positional formals equals to function.length if
> + // there's no rest, function.length+1 otherwise.
> + //
> + // Destructuring parameters and destructuring rest are included in
> + // other formals.
Nit: at first I didn't realize 'other formals' refers to the separate section mentioned below. Maybe s/other formals/"other formals"/ to avoid confusion.
Attachment #8991794 -
Flags: review?(jdemooij) → review+
Assignee | ||
Comment 3•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/738e3cb89b4b7513d69438da6a1b3f3748a34538
Bug 1475464 - Add more description about FunctionScope data. r=jandem DONTBUILD because comment only
Comment 4•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•