Skip to content

Commit baa6b95

Browse files
committed
Changed JSTypedArrayMake to return a JSObjectRef
1 parent f745e4c commit baa6b95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

JavaScriptCore/API/JSTypedArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ JSTypedArrayType JSTypedArrayGetType(JSContextRef ctx, JSValueRef value) {
7878
return kJSTypedArrayTypeNone;
7979
}
8080

81-
JSValueRef JSTypedArrayMake(JSContextRef ctx, JSTypedArrayType arrayType, size_t numElements) {
81+
JSObjectRef JSTypedArrayMake(JSContextRef ctx, JSTypedArrayType arrayType, size_t numElements) {
8282
ExecState* exec = toJS(ctx);
8383
APIEntryShim entryShim(exec);
8484

JavaScriptCore/API/JSTypedArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ JS_EXPORT JSTypedArrayType JSTypedArrayGetType(JSContextRef ctx, JSValueRef valu
4949
@param ctx The execution context to use.
5050
@param arrayClass A value of type JSTypedArrayType identifying the type of array you want to create
5151
@param numElements The number of elements for the array.
52-
@result A JSValueRef that is a Typed Array or NULL if there was an error
52+
@result A JSObjectRef that is a Typed Array or NULL if there was an error
5353
*/
54-
JS_EXPORT JSValueRef JSTypedArrayMake(JSContextRef ctx, JSTypedArrayType arrayType, size_t numElements);
54+
JS_EXPORT JSObjectRef JSTypedArrayMake(JSContextRef ctx, JSTypedArrayType arrayType, size_t numElements);
5555

5656
/*!
5757
@function

0 commit comments

Comments
 (0)