Skip to content
  • ggaren@apple.com's avatar
    JavaScriptCore: · 38bea920
    ggaren@apple.com authored
    2008-06-02  Geoffrey Garen  <ggaren@apple.com>
    
            Reviewed by Darin Adler.
            
            Fixed ASSERT due to execution continuing after an exception is thrown
            during array sort.
    
            * kjs/array_instance.cpp:
            (KJS::AVLTreeAbstractorForArrayCompare::compare_key_key): Don't call the
            custom comparator function if an exception has been thrown. Just return
            1 for everything, so the sort completes quickly. (The result will be
            thrown away.)
    
    LayoutTests:
    
    2008-06-02  Geoffrey Garen  <ggaren@apple.com>
    
            Reviewed by Darin Adler.
            
            Test for an exception thrown from an array sort comparator function.
    
            * fast/js/throw-from-array-sort-expected.txt: Added.
            * fast/js/throw-from-array-sort.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    38bea920