Changeset 38265 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 10, 2008, 10:17:15 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackObjectFunctions.h
r37845 r38265 131 131 // FIXME: This violates the PropertySlot design a little bit. 132 132 // We should either use this optimization everywhere, or nowhere. 133 slot.setCustom( asObject(toJS(value)), cachedValueGetter);133 slot.setCustom(toJS(value), cachedValueGetter); 134 134 return true; 135 135 } -
trunk/JavaScriptCore/ChangeLog
r38259 r38265 1 2008-11-10 Cameron Zwarich <[email protected]> 2 3 Reviewed by Darin Adler. 4 5 Bug 22152: Remove asObject() call from JSCallbackObject::getOwnPropertySlot() 6 <https://bugs.webkit.org/show_bug.cgi?id=22152> 7 8 With the recent change to adopt asType() style cast functions with 9 assertions instead of static_casts in many places, the assertion for 10 the asObject() call in JSCallbackObject::getOwnPropertySlot() has been 11 failing when using any nontrivial client of the JavaScriptCore API. 12 The cast isn't even necessary to call slot.setCustom(), so it should 13 be removed. 14 15 * API/JSCallbackObjectFunctions.h: 16 (JSC::JSCallbackObject::getOwnPropertySlot): 17 1 18 2008-11-10 Alexey Proskuryakov <[email protected]> 2 19
Note:
See TracChangeset
for help on using the changeset viewer.