[Webkit-unassigned] [Bug 104147] Math.{max, min}() must not return after first NaN value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 28 10:18:21 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=104147
--- Comment #25 from Oliver Hunt <oliver at apple.com> 2014-02-28 10:15:25 PST ---
(In reply to comment #24)
> I still think this caused a regression.
>
> It seems to me that we will keep calling toNumber on subsequent arguments even if an exception occurred when calling toNumber on the first argument. I am not sure why the regression test did not cover this case, but I see no way the code could be doing the right thing. We need to exit the loop when an exception occurs, and we used to do that as a side effect because we would exit the loop any time a NAN was returned.
>
> I see the test case that is supposed to test this, and I don’t understand why it doesn’t fail. Someone should look in the debugger and find out!
Indeed, i suspect that we're short circuiting vm entry when there's an exception set.
That said at this point it occurs to me that we should just implement min/max as builtins.
--
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