Changeset 88313 in webkit for trunk/Source/JavaScriptCore/API
- Timestamp:
- Jun 7, 2011, 7:00:33 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore/API
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSObjectRef.h
r41176 r88313 289 289 */ 290 290 typedef struct { 291 const char* constname;291 const char* name; 292 292 JSObjectGetPropertyCallback getProperty; 293 293 JSObjectSetPropertyCallback setProperty; … … 303 303 */ 304 304 typedef struct { 305 const char* constname;305 const char* name; 306 306 JSObjectCallAsFunctionCallback callAsFunction; 307 307 JSPropertyAttributes attributes; -
trunk/Source/JavaScriptCore/API/tests/testapi.c
r87588 r88313 938 938 } 939 939 940 static void checkConstnessInJSObjectNames() 941 { 942 JSStaticFunction fun; 943 fun.name = "something"; 944 JSStaticValue val; 945 val.name = "something"; 946 } 947 940 948 int main(int argc, char* argv[]) 941 949 { … … 1254 1262 assertEqualsAsUTF8String(jsCFEmptyString, ""); 1255 1263 assertEqualsAsUTF8String(jsCFEmptyStringWithCharacters, ""); 1264 1265 checkConstnessInJSObjectNames(); 1256 1266 1257 1267 ASSERT(JSValueIsStrictEqual(context, jsTrue, jsTrue));
Note:
See TracChangeset
for help on using the changeset viewer.