Changeset 88313 in webkit for trunk/Source/JavaScriptCore/API


Ignore:
Timestamp:
Jun 7, 2011, 7:00:33 PM (14 years ago)
Author:
[email protected]
Message:

2011-06-07 Juan C. Montemayor <[email protected]>

Reviewed by Darin Adler.

Make JSStaticFunction and JSStaticValue less "const"
https://bugs.webkit.org/show_bug.cgi?id=62222

  • API/JSObjectRef.h:
  • API/tests/testapi.c: (checkConstnessInJSObjectNames): (main):
  • JavaScriptCore.xcodeproj/project.pbxproj:
Location:
trunk/Source/JavaScriptCore/API
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSObjectRef.h

    r41176 r88313  
    289289*/
    290290typedef struct {
    291     const char* const name;
     291    const char* name;
    292292    JSObjectGetPropertyCallback getProperty;
    293293    JSObjectSetPropertyCallback setProperty;
     
    303303*/
    304304typedef struct {
    305     const char* const name;
     305    const char* name;
    306306    JSObjectCallAsFunctionCallback callAsFunction;
    307307    JSPropertyAttributes attributes;
  • trunk/Source/JavaScriptCore/API/tests/testapi.c

    r87588 r88313  
    938938}
    939939
     940static void checkConstnessInJSObjectNames()
     941{
     942    JSStaticFunction fun;
     943    fun.name = "something";
     944    JSStaticValue val;
     945    val.name = "something";
     946}
     947
    940948int main(int argc, char* argv[])
    941949{
     
    12541262    assertEqualsAsUTF8String(jsCFEmptyString, "");
    12551263    assertEqualsAsUTF8String(jsCFEmptyStringWithCharacters, "");
     1264   
     1265    checkConstnessInJSObjectNames();
    12561266   
    12571267    ASSERT(JSValueIsStrictEqual(context, jsTrue, jsTrue));
Note: See TracChangeset for help on using the changeset viewer.