Changeset 10061 in webkit


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.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r10059 r10061  
     12005-08-05  Geoffrey Garen  <ggaren@apple.com>
     2
     3        -fixed <rdar://problem/4207220> REGRESSION (DENVER): Crash occurs
     4        after clicking on Hangman applet
     5
     6        Reviewed by darin.
     7
     8        * kjs/object.cpp:
     9        (KJS::ObjectImp::hasProperty): added check for null prototype.
     10
     11        FIXME: The long-term plan is to make runtime objects use JS Null()
     12        instead of null pointers, which will allow us to eliminate null
     13        checks, improving performance.
     14
    1152005-08-05  Geoffrey Garen  <ggaren@apple.com>
    216
  • 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.