mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Add JSC utility header to RCTBridge
Reviewed By: shergin Differential Revision: D4823509 fbshipit-source-id: 79c96d3bc183d89a5dec7da06b0a0a710d8c7dea
This commit is contained in:
committed by
Facebook Github Bot
parent
76b93e1253
commit
5767b98f4d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user