Closed
Bug 1918734
Opened 2 months ago
Closed 1 month ago
[Outreachy] Add preference 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 1 open bug)
Details
Attachments
(1 file)
The first step to implementing at TC39 proposal in SpiderMonkey is to add a preference for it. This allows for the feature to be enabled or disabled at runtime, which is important, because we don't want to enable a feature by default until we've tested it enough to be confident that it won't cause problems for our users.
This bug is about adding a preference 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
. - Find the section in
StaticPrefList.yaml
for SpiderMonkey preferences and make a copy of an existing preference. Make sure your copy is inside the#ifdef NIGHTLY_BUILD
...#endif // NIGHTLY_BUILD
section, because we only want this to be available on nightly builds to begin with. - Change the copy so that the preference name is
javascript.options.experimental.math_sumprecise
and save your changes. - Similarly, add an option for the JavaScript shell, by making a copy of this example and changing
promise-try
tomath-sumprecise
. - 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 preference 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.
Updated•2 months ago
|
Severity: -- → N/A
Priority: -- → P2
Assignee | ||
Comment 1•1 month ago
|
||
Hi I would like to work on this, can i get assigned to the issue.
Reporter | ||
Comment 2•1 month ago
|
||
Thank you for your interest :) I'll assign the issue to you once you have patches ready for review.
Assignee | ||
Comment 3•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → syedbarimanjan
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•1 month ago
|
||
This looks good, thank you for your contribution. I've created a follow up in Bug 1922523 if you are interested in continuing to work on sumPrecise :)
Pushed by dminor@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/622bd6b0c264
Add preference for Math.sumPrecise proposal; r=dminor
Comment 6•1 month ago
|
||
bugherder |
Status: ASSIGNED → 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
•