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/internal.cpp

    r10084 r10178  
    858858const ClassInfo InternalFunctionImp::info = {"Function", 0, 0, 0};
    859859
     860InternalFunctionImp::InternalFunctionImp()
     861{
     862}
     863
    860864InternalFunctionImp::InternalFunctionImp(FunctionPrototypeImp *funcProto)
    861865  : ObjectImp(funcProto)
Note: See TracChangeset for help on using the changeset viewer.