Skip to content
  • ggaren's avatar
    Reviewed by Maciej. · 2564df29
    ggaren authored
            
            - Standardized which functions take a JSContext as an argument. The rule is:
            if you might execute JavaScript, you take a JSContext, otherwise you don't.
            
            The FIXME in JSObjectRef.h requires refactoring some parts of Interpreter,
            but not API changes, so I'm putting it off until later.
    
            * API/JSCallbackObject.cpp:
            (KJS::JSCallbackObject::JSCallbackObject):
            (KJS::JSCallbackObject::init):
            * API/JSCallbackObject.h:
            * API/JSContextRef.cpp:
            (JSContextCreate):
            * API/JSContextRef.h:
            * API/JSObjectRef.cpp:
            (JSObjectMake):
            (JSPropertyEnumeratorGetNext):
            * API/JSObjectRef.h:
            * API/testapi.c:
            (MyObject_initialize):
            (main):
            * JavaScriptCore.exp:
            * kjs/array_object.cpp:
            (ArrayInstance::setLength):
            (ArrayInstance::pushUndefinedObjectsToEnd):
            * kjs/nodes.cpp:
            (ForInNode::execute):
            * kjs/reference.cpp:
            (KJS::Reference::getPropertyName):
            (KJS::Reference::getValue):
            * kjs/reference.h:
            * kjs/scope_chain.cpp:
            (KJS::ScopeChain::print):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15225 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2564df29