Changeset 81900 in webkit
- Timestamp:
- Mar 24, 2011 2:44:58 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSWeakObjectMapRefPrivate.cpp
r79616 r81900 69 69 } 70 70 71 bool JSWeakObjectMapClear(JSContextRef ctx, JSWeakObjectMapRef map, void* key, JSObjectRef object) 71 // We need to keep this function in the build to keep the nightlies running. 72 JS_EXPORT bool JSWeakObjectMapClear(JSContextRef, JSWeakObjectMapRef, void*, JSObjectRef); 73 bool JSWeakObjectMapClear(JSContextRef, JSWeakObjectMapRef, void*, JSObjectRef) 72 74 { 73 ExecState* exec = toJS(ctx); 74 APIEntryShim entryShim(exec); 75 JSObject* obj = toJS(object); 76 if (map->map().deprecatedRemove(key, obj)) 77 return true; 78 return false; 75 return true; 79 76 } 80 77 -
trunk/Source/JavaScriptCore/API/JSWeakObjectMapRefPrivate.h
r79616 r81900 77 77 JS_EXPORT JSObjectRef JSWeakObjectMapGet(JSContextRef ctx, JSWeakObjectMapRef map, void* key); 78 78 79 /*!80 @function81 @abstract Clears the association between a key and an object in a JSWeakObjectMapRef82 @param ctx The execution context to use.83 @param map The map to clear the key association from.84 @param key The key to use.85 @param object The old object value.86 @result Returns true if the key/object association was present in map, and has been removed.87 */88 JS_EXPORT bool JSWeakObjectMapClear(JSContextRef ctx, JSWeakObjectMapRef map, void* key, JSObjectRef object);89 90 79 #ifdef __cplusplus 91 80 } -
trunk/Source/JavaScriptCore/ChangeLog
r81882 r81900 1 2011-03-24 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Geoffrey Garen. 4 5 REGRESSION (r79987-r80210): Crash in JSWeakObjectMapClear 6 https://bugs.webkit.org/show_bug.cgi?id=55671 7 8 This is no longer necessary, and it seems that with the new weakmap 9 model it's simply unsafe, so this reduces it to a no-op. 10 11 * API/JSWeakObjectMapRefPrivate.cpp: 12 1 13 2011-03-24 Ben Taylor <bentaylor.solx86@gmail.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.