Implement Math methods:
Math.clz32()Math.expm1()Math.fround()Math.hypot()Math.log1p()Math.imul()Hey, I'm new, but I would like to take these.
Hey, I'm new, but I would like to take these.
Sure. go for it! If you have any questions or need any assistance just ask :)
@mr-rodgers a good example of a Math method is abs: https://github.com/boa-dev/boa/blob/master/boa/src/builtins/math/mod.rs#L43-L45
after we create the methods we need to register them here like abs: https://github.com/boa-dev/boa/blob/master/boa/src/builtins/math/mod.rs#L478
I think we missed Math.imul(a: f64, b:f64) -> i32;
I think we missed Math.imul(a: f64, b:f64) -> i32;
Good catch! I'll add it to the list :)
Do we have a guide for writing tests?
Do we have a guide for writing tests?
Not really. we really should have one, but for now here is an example of how we test abs: https://github.com/boa-dev/boa/blob/master/boa/src/builtins/math/tests.rs#L6-L22
Also the Math tests should go in this file
Hope this helps.
Do we have a guide for writing tests?
Not really. we really should have one [...]
Maybe this is something I can help with?
Maybe this is something I can help with?
Yes. It would be awesome to have it for newcomers to the project :)
Most helpful comment
Maybe this is something I can help with?