react-native-macos/React/Executors
Nikhilesh Sigatapu c67225818d Add a way to access the underlying JavaScriptCore context
Summary:
**Motivation**

I'm working on a project that uses React Native and needs to add direct synchronous bindings to native stuff through the JavaScriptCore C API. This is because it's performance-sensitive and would benefit from the quickest JS->C path. It does this using cross-platform C++ code that works on both iOS and Android. Most of the infrastructure for getting access to the JSC context is already in React Native actually, just had to add a few more things.

(lexs you mentioned to tag you in this pull request)

**Test plan**

Modify the JavaScriptCore context through the `JSContextRef` returned (eg. add an object at global scope) and verify that it exists in JavaScript.
Closes https://github.com/facebook/react-native/pull/10399

Differential Revision: D4080945

Pulled By: lexs

fbshipit-source-id: 6659b7a01e09fd84475adde183c1d3aca2d4cf09
2016-10-26 03:43:44 -07:00
..
RCTJSCErrorHandling.h Improve RCTNSErrorFromJSError 2016-09-16 06:28:48 -07:00
RCTJSCErrorHandling.m Improve RCTNSErrorFromJSError 2016-09-16 06:28:48 -07:00
RCTJSCExecutor.h Add a way to access the underlying JavaScriptCore context 2016-10-26 03:43:44 -07:00
RCTJSCExecutor.mm Add a way to access the underlying JavaScriptCore context 2016-10-26 03:43:44 -07:00
RCTJSCWrapper.h Properly removing bytecode caching from iOS 2016-10-13 06:58:45 -07:00
RCTJSCWrapper.mm Properly removing bytecode caching from iOS 2016-10-13 06:58:45 -07:00