From 88ffb77729daf47a2714af4f6f5463dc7213acda Mon Sep 17 00:00:00 2001 From: Abhinav Batra Date: Fri, 18 May 2018 05:08:33 -0700 Subject: [PATCH] Fix symbolication for frames without filename Summary: Metro server would fail when frame.file would be null. This can happen when the frame is not in js. Reviewed By: davidaurelio Differential Revision: D8055637 fbshipit-source-id: eed5abe0cacef68b72a1cd47db23426b5c594727 --- packages/metro/src/Server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/metro/src/Server.js b/packages/metro/src/Server.js index cd404af4..49768c39 100644 --- a/packages/metro/src/Server.js +++ b/packages/metro/src/Server.js @@ -945,6 +945,7 @@ class Server { // does not need to symbolication. // Skip anything except http(s), because there is no support for that yet if ( + sourceUrl != null && !urls.has(sourceUrl) && !sourceUrl.endsWith('/debuggerWorker.js') && sourceUrl.startsWith('http')