JSArray::sortNumeric should handle ArrayWithUndecided
[WebKit-https.git] / Source / JavaScriptCore / ChangeLog
index b0c1fbf4832662c00cfcb70ab180d342ee27e210..bce72e6b36900622b60d81305fef6bc1989a86ab 100644 (file)
@@ -1,3 +1,16 @@
+2015-04-08  Filip Pizlo  <fpizlo@apple.com>
+
+        JSArray::sortNumeric should handle ArrayWithUndecided
+        https://bugs.webkit.org/show_bug.cgi?id=143535
+
+        Reviewed by Geoffrey Garen.
+        
+        ArrayWithUndecided is what you get if you haven't stored anything into the array yet. We need to handle it.
+
+        * runtime/JSArray.cpp:
+        (JSC::JSArray::sortNumeric):
+        * tests/stress/sort-array-with-undecided.js: Added.
+
 2015-04-08  Filip Pizlo  <fpizlo@apple.com>
 
         DFG::IntegerCheckCombiningPhase's wrap-around check shouldn't trigger C++ undef behavior on wrap-around