[Webkit-unassigned] [Bug 20049] testapi failure: MyObject - 0 should be NaN but instead is 1.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 25 23:48:42 PST 2009


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


cwzwarich at uwaterloo.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cwzwarich at uwaterloo.ca




------- Comment #3 from cwzwarich at uwaterloo.ca  2009-02-25 23:48 PDT -------
I think the test result here is correct. In the ECMA spec, subtraction uses
ToNumber, not ToPrimitive, but the test file says this, where the second test
is the failing test:

shouldBe("+MyObject", 1); // toNumber
...
shouldBe("MyObject - 0", NaN); // toPrimitive

Addition uses ToPrimitive, and the result of the equivalent addition test may
be wrong, but that's a different question.


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



More information about the webkit-unassigned mailing list