Bug 40110

Summary: [Qt] QScriptValue::equals problems
Product: WebKit Reporter: Jędrzej Nowacki <jedrzej.nowacki>
Component: JavaScriptCoreAssignee: Jędrzej Nowacki <jedrzej.nowacki>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, jedrzej.nowacki, kenneth
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 31863    
Attachments:
Description Flags
Fix v1 none

Jędrzej Nowacki
Reported 2010-06-03 03:23:56 PDT
There are a few edge cases for which the method returns a bad result; !. Comparison of a two NaN 2. Comparison of a two invalid QScriptValue objects will return false instead of true 3. Sometimes QScriptValue::equals print warnings about an invalid engine assignment, but these message are false positive.
Attachments
Fix v1 (78.02 KB, patch)
2010-06-03 04:48 PDT, Jędrzej Nowacki
no flags
Jędrzej Nowacki
Comment 1 2010-06-03 04:48:10 PDT
Kenneth Rohde Christiansen
Comment 2 2010-06-03 05:11:54 PDT
Comment on attachment 57753 [details] Fix v1 Wonderful tests. JavaScriptCore/qt/tests/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp:1124 + equals.reserve(1085); Could this number be calculated?
Jędrzej Nowacki
Comment 3 2010-06-03 05:54:48 PDT
(In reply to comment #2) > (From update of attachment 57753 [details]) > Wonderful tests. > JavaScriptCore/qt/tests/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp:1124 > + equals.reserve(1085); > Could this number be calculated? Not really, only the maximal size could be calculated which is permutation of all values in the test. It would be huge. Thanks for review!
WebKit Commit Bot
Comment 4 2010-06-04 00:54:32 PDT
Comment on attachment 57753 [details] Fix v1 Clearing flags on attachment: 57753 Committed r60661: <http://trac.webkit.org/changeset/60661>
WebKit Commit Bot
Comment 5 2010-06-04 00:54:37 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.