Status: New
Owner: ----

New issue 636 by bertbelder: String handling broken (test case)
http://code.google.com/p/v8/issues/detail?id=636

For some reason the code below doesn't get executed correctly (at least not
under 32-bit linux). Other javascript engines do produce the correct answer.

var test = function() {
        var j, result = "";
        undeclaredVar = parseFloat(5.5);
        undeclaredVar = Math.abs( 1025 );
        for( j = 12; --j; result = ( undeclaredVar % 2 ) + result, 
undeclaredVar =
undeclaredVar >>= 1 );
        return result;
};
// should emit        01000000001 (run in another JS engine if you don't
believe me)
// strange bug: emits 10000000001
test();


Attachments:
        test.js  360 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to