Skip to content

Commit f3a7c18

Browse files
committed
Renamed function to clarify ownership
1 parent ba83a41 commit f3a7c18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

JavaScriptCore/API/JSTypedArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ JSObjectRef JSObjectMakeTypedArray(JSContextRef ctx, JSTypedArrayType arrayType,
137137
return toRef(result);
138138
}
139139

140-
JSDataRef JSObjectGetTypedArrayData(JSContextRef ctx, JSObjectRef object)
140+
JSDataRef JSObjectGetRetainedTypedArrayData(JSContextRef ctx, JSObjectRef object)
141141
{
142142
ExecState* exec = toJS(ctx);
143143
APIEntryShim entryShim(exec);

JavaScriptCore/API/JSTypedArray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ JS_EXPORT size_t JSDataGetLength(JSDataRef data);
7171
@param byteLength A pointer to a size_t in which to store the byte length of the Typed Array
7272
@result A pointer to the Typed Array's data or NULL if the JSValue is not a Typed Array.
7373
*/
74-
JS_EXPORT JSDataRef JSObjectGetTypedArrayData(JSContextRef ctx, JSObjectRef object);
74+
JS_EXPORT JSDataRef JSObjectGetRetainedTypedArrayData(JSContextRef ctx, JSObjectRef object);
7575

7676

7777
#ifdef __cplusplus

0 commit comments

Comments
 (0)