[Webkit-unassigned] [Bug 39834] [Qt] JavaScript logical expressions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 8 06:18:57 PDT 2010


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





--- Comment #4 from Janne Koskinen <koshuin at gmail.com>  2010-06-08 06:18:56 PST ---
Can you clarify what is wrong?
I ran the test case on IE6,FF,Chrome and my own webview client on top of Qt 4.7 in hardware (5800) and emulator (5.0) and all returned following results:

s=
s == true false
s == false true
s.length == true false
s.length == false true

s=Hello!
s == true false
s == false false
s.length == true false
s.length == false false


So your test if (str == false) evaluated false on all platforms and browsers that I tested.

I added following to the test:

s = "Hello!";
if (s == false)
{
    alert('false');
}
if (s == true)
{
    alert('true');
}

This was to verify that RVCT won't do anything funny with the temp variables which was my first assumption what is wrong but nope the result is still the same i.e. no alert popups was shown on Nokia 5800.

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