Changeset 10061 in webkit for trunk/JavaScriptCore/kjs/object.cpp


Ignore:
Timestamp:
Aug 5, 2005, 6:16:25 PM (20 years ago)
Author:
ggaren
Message:

-fixed <rdar://problem/4207220> REGRESSION (DENVER): Crash occurs
after clicking on Hangman applet

Reviewed by darin.

  • kjs/object.cpp: (KJS::ObjectImp::hasProperty): added check for null prototype.

FIXME: The long-term plan is to make runtime objects use JS Null()
instead of null pointers, which will allow us to eliminate null
checks, improving performance.

File:
1 edited

Legend:

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

    r9889 r10061  
    327327    return true;
    328328
    329   if (_proto->dispatchType() != ObjectType) {
     329  if (!_proto || _proto->dispatchType() != ObjectType) {
    330330    return false;
    331331  }
     
    340340      return true;
    341341
    342     if (_proto->dispatchType() != ObjectType) {
     342    if (!_proto || _proto->dispatchType() != ObjectType) {
    343343      return false;
    344344    }
Note: See TracChangeset for help on using the changeset viewer.