mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add new FileSourceProvider
Summary: Add a new interface to JSC that allows loading a file lazily from disk, i.e. using mmap, instead of loading the whole file upfront and copying into the VM. Reviewed By: michalgr Differential Revision: D3534042 fbshipit-source-id: 98b193cc7b7e33248073e2556ea94ce3391507c7
This commit is contained in:
committed by
Facebook Github Bot 9
parent
e5650560c0
commit
5d06918d07
@@ -49,6 +49,18 @@ JSValueRef evaluateScript(
|
||||
JSStringRef script,
|
||||
JSStringRef sourceURL);
|
||||
|
||||
#if WITH_FBJSCEXTENSIONS
|
||||
JSValueRef evaluateSourceCode(
|
||||
JSContextRef ctx,
|
||||
JSSourceCodeRef source,
|
||||
JSStringRef sourceURL);
|
||||
#endif
|
||||
|
||||
void formatAndThrowJSException(
|
||||
JSContextRef ctx,
|
||||
JSValueRef exn,
|
||||
JSStringRef sourceURL);
|
||||
|
||||
JSValueRef makeJSError(JSContextRef ctx, const char *error);
|
||||
|
||||
JSValueRef translatePendingCppExceptionToJSError(JSContextRef ctx, const char *exceptionLocation);
|
||||
|
||||
Reference in New Issue
Block a user