Skip to content
  • barraclough@apple.com's avatar
    Array.prototype.toString should be generic · 364138ec
    barraclough@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=81588
    
    Reviewed by Sam Weinig.
    
    Source/JavaScriptCore: 
    
    * runtime/ArrayPrototype.cpp:
    (JSC::arrayProtoFuncToString):
        - check for join function, use fast case if base object is array & join is present & default.
    * runtime/CommonIdentifiers.h:
        - added 'join'.
    
    LayoutTests: 
    
    * fast/js/array-functions-non-arrays-expected.txt:
        - check in new results
    * fast/js/array-prototype-properties-expected.txt:
        - new more detailed error message.
    * fast/js/script-tests/array-functions-non-arrays.js:
        - added new test cases, fix incorrect one.
    * sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.2_Array_prototype_toString/S15.4.4.2_A2_T1-expected.txt:
        - check in failing result (test is wrong)
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    364138ec