Changeset 34664 in webkit for trunk/JavaScriptCore/kjs/JSObject.h


Ignore:
Timestamp:
Jun 19, 2008, 2:13:41 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Sam.

Fix an assertion failure at startup.

  • kjs/JSObject.h: (KJS::JSObject::JSObject): Allow jsNull prototype in an assertion (I had it fixed in a wrong copy of the file, so I wasn't getting the failure).
File:
1 edited

Legend:

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

    r34659 r34664  
    487487{
    488488    ASSERT(proto);
    489     ASSERT(Heap::heap(this) == Heap::heap(proto));
     489    ASSERT(proto == jsNull() || Heap::heap(this) == Heap::heap(proto));
    490490}
    491491
Note: See TracChangeset for help on using the changeset viewer.