Add JSC utility header to RCTBridge

Reviewed By: shergin

Differential Revision: D4823509

fbshipit-source-id: 79c96d3bc183d89a5dec7da06b0a0a710d8c7dea
This commit is contained in:
Pieter De Baets
2017-04-07 11:11:04 -07:00
committed by Facebook Github Bot
parent 76b93e1253
commit 5767b98f4d
11 changed files with 94 additions and 18 deletions

View File

@@ -16,6 +16,7 @@
#import <jschelpers/JavaScriptCore.h>
#import "JSCSamplingProfiler.h"
#import "RCTBridge+JavaScriptCore.h"
#import "RCTBridge+Private.h"
#import "RCTBridgeModule.h"
#import "RCTEventDispatcher.h"
@@ -188,7 +189,7 @@ RCT_EXPORT_MODULE()
- (BOOL)isJSCSamplingProfilerAvailable
{
return JSC_JSSamplingProfilerEnabled(_bridge.jsContext.JSGlobalContextRef);
return JSC_JSSamplingProfilerEnabled(_bridge.jsContextRef);
}
RCT_EXPORT_METHOD(reload)