Closed
Bug 1923148
Opened 1 month ago
Closed 27 days ago
[Outreachy] Add placeholder implementation for Iterator.ZipKeyed
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
133 Branch
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: dminor, Assigned: temidayoazeez032)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
This bug is about adding a placeholder implementation for the Iterator.zipKeyed
method of the joint iteration proposal. The steps to do this are:
- Make sure that you are able to build SpiderMonkey and run the existing tests. There are instructions here. You want to run the jstests, using this command
./mach jstests
. - In Iterator.js add a placeholder method for IteratorZipKeyed. We use NIGHTLY_BUILD so this will only be built for Nightly, and will not be available in release. Returning false means this method will fail all the time for now.
#ifdef NIGHTLY_BUILD
/**
* Iterator.zipKeyed ( iterables [, options] )
*
* https://tc39.es/proposal-joint-iteration/#sec-iterator.zipkeyed
*/
function IteratorZipKeyed(predicate) {
return false;
}
#endif
- Add the new function as a static method on Iterators. Please use #ifndef NIGHTLY_BUILD / #endif here as well.
- You can check that your new method is available in the shell, e.g.
print(Iterator.zipKeyed)
from the JavaScript shell. - The final step is to remove it from the Iterator object when the pref for joint iteration is not enabled. There's an example of how to do this in this patch. Note that you'll have to add
zipKeyed
to CommonPropertyNames.h. - Make sure you can still build and run the tests.
- Once the tests all pass for you, you can commit your changes. Your commit message should look like:
Bug X - Add placeholder for Iterator.zipKeyed; r=dminor!
, where X is the number for this bug. - Once you have your changes committed, request review. There are instructions on using phabricator and on getting reviews.
As soon as this is merged (https://phabricator.services.mozilla.com/D224467), I will make a patch
Updated•1 month ago
|
Assignee: nobody → temidayoazeez032
Status: NEW → ASSIGNED
Updated•1 month ago
|
Severity: -- → N/A
Priority: -- → P3
Updated•1 month ago
|
Attachment #9429587 -
Attachment is obsolete: true
Pushed by dminor@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/55c7f2699afc
Add placeholder for Iterator.zipKeyed; r=dminor
Comment 6•27 days ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
status-firefox133:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•