mirror of https://github.com/status-im/metro.git
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:
parent
68807f0a56
commit
88ffb77729
|
@ -945,6 +945,7 @@ class Server {
|
||||||
// does not need to symbolication.
|
// does not need to symbolication.
|
||||||
// Skip anything except http(s), because there is no support for that yet
|
// Skip anything except http(s), because there is no support for that yet
|
||||||
if (
|
if (
|
||||||
|
sourceUrl != null &&
|
||||||
!urls.has(sourceUrl) &&
|
!urls.has(sourceUrl) &&
|
||||||
!sourceUrl.endsWith('/debuggerWorker.js') &&
|
!sourceUrl.endsWith('/debuggerWorker.js') &&
|
||||||
sourceUrl.startsWith('http')
|
sourceUrl.startsWith('http')
|
||||||
|
|
Loading…
Reference in New Issue