Changeset 43692 in webkit for trunk/JavaScriptCore/API/tests/testapi.c
- Timestamp:
- May 14, 2009, 4:14:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/tests/testapi.c
r43603 r43692 1137 1137 JSStringRelease(script); 1138 1138 1139 // Verify that creating a constructor for a class with no static functions does not trigger 1140 // an assert inside putDirect or lead to a crash during GC. <https://bugs.webkit.org/show_bug.cgi?id=25785> 1141 nullDefinition = kJSClassDefinitionEmpty; 1142 nullClass = JSClassCreate(&nullDefinition); 1143 myConstructor = JSObjectMakeConstructor(context, nullClass, 0); 1144 JSClassRelease(nullClass); 1145 1139 1146 char* scriptUTF8 = createStringWithContentsOfFile(scriptPath); 1140 1147 if (!scriptUTF8) { … … 1164 1171 o = NULL; 1165 1172 globalObject = NULL; 1173 myConstructor = NULL; 1166 1174 1167 1175 JSStringRelease(jsEmptyIString);
Note:
See TracChangeset
for help on using the changeset viewer.