Closed
Bug 418765
Opened 18 years ago
Closed 18 years ago
rest params cause compiler error
Categories
(Tamarin Graveyard :: Self-hosting compiler (ESC), defect)
Tamarin Graveyard
Self-hosting compiler (ESC)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: markh, Assigned: lhansen)
Details
Attachments
(1 file)
|
25.87 KB,
patch
|
markh
:
review+
|
Details | Diff | Splinter Review |
The following code:
"""
{
public class bar {
public function bang(...s) {;}
}
}
"""
causes:
ReferenceError: Error #1065: Variable restParameter is not defined.
at Parse::Parser/Parse::nonemptyParameters()[../src/parse.es:4498]
at Parse::Parser/Parse::parameters()[../src/parse.es:4474]
at Parse::Parser/Parse::functionSignature()[../src/parse.es:4381]
at Parse::Parser/Parse::functionDefinition()[../src/parse.es:4044]
at Parse::Parser/Parse::annotatableDirective()[../src/parse.es:5076]
at Parse::Parser/Parse::directive()[../src/parse.es:4996]
...
A quick grep shows restParameter isn't defined anywhere.
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → lhansen
| Assignee | ||
Comment 1•18 years ago
|
||
This isn't squeaky-clean but it's roughly right.
Attachment #304814 -
Flags: review?(mhammond)
| Reporter | ||
Comment 2•18 years ago
|
||
Comment on attachment 304814 [details] [diff] [review]
Patch
looks good and wfm - thx.
Attachment #304814 -
Flags: review?(mhammond) → review+
| Assignee | ||
Comment 3•18 years ago
|
||
Pushed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•