Changeset 10178 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Aug 14, 2005, 9:04:19 AM (20 years ago)
Author:
darin
Message:
  • kjs/error_object.cpp: (NativeErrorImp::NativeErrorImp): Set proto in a more straightforward way. The old code set the proto to 0 and then to the correct value. This showed up as a "false positive" when searching for places that set prototype to NULL/0 so I fixed it.
  • kjs/function_object.cpp: (FunctionPrototypeImp::FunctionPrototypeImp): Change to not pass an explicit "0" to the base class (InternalFunctionImp) constructor.
  • kjs/internal.h: Added a default constructor for InternalFunctionImp.
  • kjs/internal.cpp: (KJS::InternalFunctionImp::InternalFunctionImp): Added the default constructor (empty body, just calls base class's default constructor).
  • kjs/object.h: (KJS::ObjectImp::ObjectImp): Add an assertion to catch NULL prototypes earlier in Development builds. (KJS::ObjectImp::setPrototype): Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.h

    r10148 r10178  
    623623    : _proto(proto), _internalValue(0)
    624624{
     625    assert(proto);
    625626}
    626627
     
    647648inline void ObjectImp::setPrototype(ValueImp *proto)
    648649{
     650    assert(proto);
    649651    _proto = proto;
    650652}
Note: See TracChangeset for help on using the changeset viewer.