[Webkit-unassigned] [Bug 24156] Unary + conversion to number fails for negative hexadecimal (-0xff) 0x
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 25 23:22:11 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=24156
cwzwarich at uwaterloo.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from cwzwarich at uwaterloo.ca 2009-02-25 23:22 PDT -------
This works as expected. See section 9.3.1 of the ECMA spec:
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
The ToNumber operation (which is used by the unary plus operator) only handles
negative signs for decimal numbers, not hex or octal. It might be a bit
strange, but it's the spec.
--
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