Changeset 15225 in webkit for trunk/JavaScriptCore/API/testapi.c


Ignore:
Timestamp:
Jul 7, 2006, 7:25:55 PM (19 years ago)
Author:
ggaren
Message:

Reviewed by Maciej.


  • 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):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/testapi.c

    r15224 r15225  
    123123
    124124static bool didInitialize = false;
    125 static void MyObject_initialize(JSObjectRef object)
     125static void MyObject_initialize(JSContextRef context, JSObjectRef object)
    126126{
    127127    UNUSED_PARAM(context);
     
    594594    JSPropertyEnumeratorRef enumerator = JSObjectCreatePropertyEnumerator(context, o);
    595595    int count = 0;
    596     while (JSPropertyEnumeratorGetNext(context, enumerator))
     596    while (JSPropertyEnumeratorGetNext(enumerator))
    597597        ++count;
    598598    JSPropertyEnumeratorRelease(enumerator);
Note: See TracChangeset for help on using the changeset viewer.