Closed
Bug 1475464
Opened 6 years ago
Closed 6 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•6 years ago
|
||
Attachment #8991794 -
Flags: review?(jdemooij)
Comment 2•6 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•6 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•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/738e3cb89b4b
Status: NEW → RESOLVED
Closed: 6 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
•