From d5dda1b1365321c0bb64eca0d1d88909f0f6c7fd Mon Sep 17 00:00:00 2001 From: Ashok Menon Date: Wed, 15 Mar 2017 18:25:35 -0700 Subject: [PATCH] Adding in missing wrapper invocation. Reviewed By: javache Differential Revision: D4714260 fbshipit-source-id: 641dfd07e8161bedf31cfd4cf94b1dc64beec0f9 --- React/CxxModule/RCTCxxUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/CxxModule/RCTCxxUtils.h b/React/CxxModule/RCTCxxUtils.h index 0f361233836..2278cf42de8 100644 --- a/React/CxxModule/RCTCxxUtils.h +++ b/React/CxxModule/RCTCxxUtils.h @@ -33,7 +33,7 @@ template <> struct ValueEncoder { 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]}; } };