Changeset 85117 in webkit
- Timestamp:
- Apr 27, 2011 4:06:42 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSWeakObjectMapRefPrivate.cpp
r81900 r85117 69 69 } 70 70 71 void JSWeakObjectMapRemove(JSContextRef ctx, JSWeakObjectMapRef map, void* key) 72 { 73 ExecState* exec = toJS(ctx); 74 APIEntryShim entryShim(exec); 75 map->map().take(key); 76 } 77 71 78 // We need to keep this function in the build to keep the nightlies running. 72 79 JS_EXPORT bool JSWeakObjectMapClear(JSContextRef, JSWeakObjectMapRef, void*, JSObjectRef); -
trunk/Source/JavaScriptCore/API/JSWeakObjectMapRefPrivate.h
r81900 r85117 77 77 JS_EXPORT JSObjectRef JSWeakObjectMapGet(JSContextRef ctx, JSWeakObjectMapRef map, void* key); 78 78 79 /*! 80 @function 81 @abstract Removes the entry for the given key if the key is present, otherwise it has no effect. 82 @param ctx The execution context to use. 83 @param map The map to use. 84 @param key The key to remove. 85 */ 86 JS_EXPORT void JSWeakObjectMapRemove(JSContextRef ctx, JSWeakObjectMapRef map, void* key); 87 79 88 #ifdef __cplusplus 80 89 } -
trunk/Source/JavaScriptCore/ChangeLog
r85084 r85117 1 2011-04-27 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Geoffrey Garen. 4 5 Add ability to remove keys from weakmap API 6 https://bugs.webkit.org/show_bug.cgi?id=59645 7 8 Add JSWeakObjectMapRemove API 9 10 * API/JSWeakObjectMapRefPrivate.cpp: 11 * API/JSWeakObjectMapRefPrivate.h: 12 * JavaScriptCore.exp: 13 1 14 2011-04-27 Adam Barth <abarth@webkit.org> 2 15 -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r84660 r85117 88 88 _JSWeakObjectMapCreate 89 89 _JSWeakObjectMapGet 90 _JSWeakObjectMapRemove 90 91 _JSWeakObjectMapSet 91 92 _WTFLog
Note: See TracChangeset
for help on using the changeset viewer.