Bug at Math.round

Marcus Lagergren marcus.lagergren at oracle.com
Wed May 29 05:09:16 PDT 2013


Hi!

I just pushed a fix, which will be migrated to TL shortly. 

Thanks 
/M

On May 29, 2013, at 5:45 AM, toshiyuki kojima <basabasafoo at gmail.com> wrote:

> Hello,
> 
> 
> I found a bug:
> 
> Math.round(-0) should return -0, but Math.round(-0) returns +0 in nashorn.
> 
> 
> I confirmed this bug using revision:
> 
>  changeset:   d56168970de1
> 
>  date:        Tue May 28 16:37:11 2013 +0530
> 
>  summary:     8015459: Octane test run fails on Turkish locale
> 
> 
> 
> http://ecma-international.org/ecma-262/5.1/#sec-15.8.2.15
> 
> http://jsfiddle.net/gocho/TscsU/
> 
> http://hg.openjdk.java.net/nashorn/jdk8/nashorn/file/d56168970de1/src/jdk/nashorn/internal/objects/NativeMath.java
> 
> 
> Thanks,
> 
> --gocho
> 
> twitter.com/gocho



More information about the nashorn-dev mailing list