Skip to content

Commit 7d65ecb

Browse files
committed
JSDataRetain did not return itself
1 parent 69f4ef1 commit 7d65ecb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

JavaScriptCore/API/JSTypedArray.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,11 @@ JSDataRef JSObjectGetRetainedTypedArrayData(JSContextRef ctx, JSObjectRef object
153153
return NULL;
154154
}
155155

156-
void JSDataRetain(JSDataRef data)
156+
JSDataRef JSDataRetain(JSDataRef data)
157157
{
158158
if(data != nullptr)
159159
data->ref();
160+
return data;
160161
}
161162

162163
void JSDataRelease(JSDataRef data)

0 commit comments

Comments
 (0)