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
This commit is contained in:
Abhinav Batra 2018-05-18 05:08:33 -07:00 committed by Facebook Github Bot
parent 68807f0a56
commit 88ffb77729
1 changed files with 1 additions and 0 deletions

View File

@ -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')