Adding in missing wrapper invocation.

Reviewed By: javache

Differential Revision: D4714260

fbshipit-source-id: 641dfd07e8161bedf31cfd4cf94b1dc64beec0f9
This commit is contained in:
Ashok Menon 2017-03-15 18:25:35 -07:00 committed by Facebook Github Bot
parent c53404a688
commit d5dda1b136
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ template <>
struct ValueEncoder<NSArray *> { struct ValueEncoder<NSArray *> {
static Value toValue(JSGlobalContextRef ctx, NSArray *const __strong array) static Value toValue(JSGlobalContextRef ctx, NSArray *const __strong array)
{ {
JSValue *value = [JSValue valueWithObject:array inContext:contextForGlobalContextRef(ctx)]; JSValue *value = [JSC_JSValue(ctx) valueWithObject:array inContext:contextForGlobalContextRef(ctx)];
return {ctx, [value JSValueRef]}; return {ctx, [value JSValueRef]};
} }
}; };