Closed
Bug 1922523
Opened 1 month ago
Closed 1 month ago
[Outreachy] Add placeholder implementation for Math.sumPrecise proposal
Categories
(Core :: JavaScript Engine, task, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
133 Branch
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: dminor, Assigned: syedbarimanjan)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 2 obsolete files)
This bug is about adding a placeholder implementation for the Math.sumPrecise
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 the jsmath.cpp add a placeholder method for sumPrecise. 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
static bool math_sumprecise(JSContext* cx, unsigned argc, Value* vp) {
return false;
}
#endif
- We also need to add it to the list of methods on the Math object, right at the end of the list. There's an example of how to do this in this patch.
- The final step is to remove it from the Math object when the pref is not enabled. There's an example of how to do this in this patch as well.
- 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 Math.sumPrecise proposal; 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.
Assignee | ||
Comment 1•1 month ago
|
||
:dminor, I am working on this.
Reporter | ||
Updated•1 month ago
|
Assignee: nobody → syedbarimanjan
Assignee | ||
Comment 2•1 month ago
|
||
Assignee | ||
Comment 3•1 month ago
|
||
Updated•1 month ago
|
Attachment #9429272 -
Attachment is obsolete: true
Updated•1 month ago
|
Attachment #9429432 -
Attachment is obsolete: true
Assignee | ||
Comment 4•1 month ago
|
||
Updated•1 month ago
|
Severity: -- → N/A
Priority: -- → P2
Pushed by dminor@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b26745c93182
Add placeholder for Math.sumPrecise proposal; r=dminor
Comment 6•1 month ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 1 month 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
•