Skip to content
  • ggaren's avatar
    -fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3881 · c5fb7ed5
    ggaren authored
            arguments object should share values with function parameters
    
            Reviewed by mjs.
    
            ArgumentsImp now uses a simple hash lookup to share values
            with the activation object.
    
            * kjs/function.cpp:
            (KJS::FunctionImp::getParameterName):
            (KJS::IndexToNameMap::IndexToNameMap):
            (KJS::IndexToNameMap::~IndexToNameMap):
            (KJS::IndexToNameMap::isMapped):
            (KJS::IndexToNameMap::unMap):
            (KJS::IndexToNameMap::operator[]):
            (KJS::ArgumentsImp::ArgumentsImp):
            (KJS::ArgumentsImp::mark):
            (KJS::ArgumentsImp::get):
            (KJS::ArgumentsImp::put):
            (KJS::ArgumentsImp::deleteProperty):
            (KJS::ArgumentsImp::hasOwnProperty):
            (KJS::ActivationImp::createArgumentsObject):
            * kjs/function.h:
            * tests/mozilla/expected.html: updated results
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c5fb7ed5