Status: Untriaged
Owner: ----

New issue 4375 by [email protected]: Math.min/max returns wrong result the second time it runs
https://code.google.com/p/v8/issues/detail?id=4375

Code is based on the test located at "mjsunit/result-table-max.js" in the V8 repo.

The attached code (also below) fails when running d8/v8 with "--always_opt".
It is Math.max/min that fails, just like in #4374, but under very different circumstances, so I think it deserves its own issue (Close if I'm wrong).
The second time the test function runs, result[0] is "2.121995791e-314".

I'm running the latests build, X64.release on Ubuntu.

function assertEquals(a, b) { if (a != b) throw new Error("AssertionsError " + a + " != " + b)}
    function matrix() {
      return [Math.min(true, true),Math.min(true, void 0),0,0,0,0,0,0,0]
    }
    function test() {
      var result = matrix();
      assertEquals(1, result[0]);
    }
    test();
    test();


Attachments:
        code.js  326 bytes

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to