[Webkit-unassigned] [Bug 135338] IOS - Math.abs generate random numbers when we have JIT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 29 02:12:24 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135338





--- Comment #3 from Adrian <kileras at gmail.com>  2014-07-29 02:12:36 PST ---
I just tried again in both the emulator (iPad IOS 7.1), iPad 3 (iOS 7.1.2) and yesterday I tried In iPhone 5s (iOS 7.1.2).

The emulator fails all the time, the iPad 3 and the 5s fails sometimes for me, not always. It seems that they fail all the time if I change the code to:

var list = [];

Number.prototype.abs = function() {
     return Math['abs'].call(Math, this);
};

for (var i = 0; i < 100; i++) {
     list.push(i.abs());
}

document.write(list.join(', '));

Anyway yesterday I manage to update the iPhone to the latest iOS beta and now I cannot reproduce the issue anymore. Not this one, nor the other similar ones I found or even the original one in our big codebase.

It will be cool if we can now which bug fixed this one, but at least it seems that this is not going to be an issue anymore in the fall.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list