engine262 icon indicating copy to clipboard operation
engine262 copied to clipboard

Implement Math

Open devsnek opened this issue 7 years ago • 4 comments

Implement https://tc39.github.io/ecma262/#sec-math-object

test with node test/test.mjs "built-ins/Math/**/*.js"

devsnek avatar Nov 27 '18 04:11 devsnek

I’m in the process of creating a new equivalent Math library using Rust’s standard library and WebAssembly to avoid relying on the host’s Math object.

TimothyGu avatar Dec 27 '18 09:12 TimothyGu

There is a port of https://www.netlib.org/fdlibm/ at https://github.com/rtoy/fdlibm-js/tree/gh-pages .

And some implementations of ES6 Math additions at https://github.com/kangax/compat-table/issues/392#issuecomment-240196072 (implemented just for fun).

Yaffle avatar Jan 08 '19 19:01 Yaffle

The Math object is now specified using algorithm steps: https://github.com/tc39/ecma262/issues/2119

ExE-Boss avatar Sep 14 '20 13:09 ExE-Boss