Changeset 15213 in webkit for trunk/JavaScriptCore/API/testapi.c


Ignore:
Timestamp:
Jul 7, 2006, 1:41:27 PM (19 years ago)
Author:
ggaren
Message:

Reviewed by John.


  • Fixed a few crashes resulting from NULL parameters to JSClassCreate.
  • API/JSClassRef.cpp: (JSClassCreate): (JSClassRelease):
  • API/testapi.c: Added test for NULL parameters. (main):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/testapi.c

    r15168 r15213  
    565565    JSStringBufferRelease(myConstructorBuf);
    566566
     567    JSClassRef nullCallbacksClass = JSClassCreate(context, NULL, NULL, NULL, NULL);
     568    JSClassRelease(nullCallbacksClass);
     569   
    567570    char* script = createStringWithContentsOfFile("testapi.js");
    568571    JSStringBufferRef scriptBuf = JSStringBufferCreateUTF8(script);
Note: See TracChangeset for help on using the changeset viewer.