Closed
Bug 1043683
Opened 11 years ago
Closed 11 years ago
Make RegExpStatics::makeMatch sane about not taking two arguments, one of which is always double the other (yet has its parity tested)
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: Waldo, Assigned: Waldo)
References
Details
Attachments
(1 file)
In the process of reading bug 369778's patch I realized RegExpStatics::makeMatch is kind of stupid, and we can remove an argument and save substantially on complexity in the process. We should do that.
Assignee | ||
Comment 1•11 years ago
|
||
Andy, seeing as this is a relatively simple change what with makeMatch being used only in this file, and seeing as you've looked at this code most recently, you're probably the best person to review this, seems to me. It'll bitrot your patch slightly, but I can review around the changes. :-)
Attachment #8462097 -
Flags: review?(ae.anderson0)
Assignee | ||
Comment 2•11 years ago
|
||
(Protocol on review requests, if you're not yet familiar with it: set the review flag to + if you think the patch is good, or set it to - if you think it's bad. If you have comments on anything -- better ways to do one thing or another, suggestions for better comment wording, etc. -- feel free to make them in the process.)
Comment 3•11 years ago
|
||
Comment on attachment 8462097 [details] [diff] [review]
Make RegExpStatics::makeMatch sane about not taking two arguments, one of which is always double the other (yet has its parity tested). NOT REVIEWED YET
Review of attachment 8462097 [details] [diff] [review]:
-----------------------------------------------------------------
Seems fine to me. I'd like it if there were an additional comment demanding parity on the input, but given that this code shouldn't move around too much it's not vital.
Attachment #8462097 -
Flags: review?(ae.anderson0) → review+
Comment 4•11 years ago
|
||
(In reply to Andy Anderson from comment #3)
> Comment on attachment 8462097 [details] [diff] [review]
> Make RegExpStatics::makeMatch sane about not taking two arguments, one of
> which is always double the other (yet has its parity tested). NOT REVIEWED
> YET
>
> Review of attachment 8462097 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Seems fine to me. I'd like it if there were an additional comment demanding
> parity on the input, but given that this code shouldn't move around too much
> it's not vital.
It's late. Patch is fine as is, ignore my earlier comments suggesting otherwise.
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•11 years ago
|
QA Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•