| Index: runtime/vm/source_report.cc
|
| diff --git a/runtime/vm/source_report.cc b/runtime/vm/source_report.cc
|
| index 4da21b6e8a350f7cbe4fc5e918b271d8af71d95c..8c08726353de2cbbd98bd5fc0ee493a12c143f9e 100644
|
| --- a/runtime/vm/source_report.cc
|
| +++ b/runtime/vm/source_report.cc
|
| @@ -244,6 +244,15 @@ void SourceReport::VisitFunction(JSONArray* jsarr, const Function& func) {
|
| }
|
| ASSERT(!code.IsNull());
|
|
|
| + // We skip compiled async functions. Once an async function has
|
| + // been compiled, there is another function with the same range which
|
| + // actually contains the user code.
|
| + if (func.IsAsyncFunction() ||
|
| + func.IsAsyncGenerator() ||
|
| + func.IsSyncGenerator()) {
|
| + return;
|
| + }
|
| +
|
| JSONObject range(jsarr);
|
| range.AddProperty("scriptIndex", GetScriptIndex(script));
|
| range.AddProperty("startPos", begin_pos);
|
|
|