[Webkit-unassigned] [Bug 77317] JSC::JSValue doesn't support UInt32 properly.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 30 21:40:00 PST 2012


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





--- Comment #2 from Kihong Kwon <kihong.kwon at samsung.com>  2012-01-30 21:40:01 PST ---
(In reply to comment #1)
> JSC support the ECMA-262 defined toUint32 conversion correctly (see ES5.1 section 9.6).  If WebIDL wants a different conversion, this is probably best supported in a wrapper function in WebCore/bindings, rather than in JSC.
> 
> This can be implemented in terms of JSValue::toNumber (as the WebIDL spec calls for), optionally optimizing access to integers using JSValue::isInt32 & JSValue::asInt32.
> 
> This bug should probably be retitled – JSC's toUint32 matches that of the appropriate spec.

I have this codes in custom JS file.
---------------------------------------------
JSValue value = exec.argument(0);
if (value.isUInt32())
...
---------------------------------------------
When I input greater than equal 2^31(like 4294967295) to an argument, isUInt32() returns false. I think it have to return true. Am I wrong?

-- 
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