Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions React/Base/RCTBridgeDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* this should be an absolute URL, e.g. `http://localhost:8081/index.ios.bundle`.
* When running from a locally bundled JS file, this should be a `file://` url
* pointing to a path inside the app resources, e.g. `file://.../main.jsbundle`.
* If you return nil you need to implement loadSourceForBridge:onProgress:onComplete:
* or loadSourceForBridge:withBlock: instead
*/
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge;

Expand Down
2 changes: 1 addition & 1 deletion React/Executors/RCTJSCExecutor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ - (void)executeApplicationScript:(NSData *)script
onComplete:(RCTJavaScriptCompleteBlock)onComplete
{
RCTAssertParam(script);
RCTAssertParam(sourceURL);

NSError *loadError;
TaggedScript taggedScript = loadTaggedScript(script, sourceURL,
Expand Down Expand Up @@ -717,6 +716,7 @@ static TaggedScript loadTaggedScript(NSData *script,
NSData *loadedScript = NULL;
switch (tag) {
case facebook::react::ScriptTag::RAMBundle:
RCTAssertParam(sourceURL);
[performanceLogger markStartForTag:RCTPLRAMBundleLoad];

loadedScript = loadRAMBundle(sourceURL, error, randomAccessBundle);
Expand Down