Chromium Code Reviews| Index: runtime/vm/source_report.cc |
| diff --git a/runtime/vm/source_report.cc b/runtime/vm/source_report.cc |
| index 4da21b6e8a350f7cbe4fc5e918b271d8af71d95c..847ead7bbeb1a521b08486c10910d4cf78bedfd7 100644 |
| --- a/runtime/vm/source_report.cc |
| +++ b/runtime/vm/source_report.cc |
| @@ -244,6 +244,13 @@ 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()) { |
|
rmacnak
2016/01/07 18:08:43
Similar story with sync* and async* functions.
Is
turnidge
2016/01/07 19:25:17
Done.
|
| + return; |
| + } |
| + |
| JSONObject range(jsarr); |
| range.AddProperty("scriptIndex", GetScriptIndex(script)); |
| range.AddProperty("startPos", begin_pos); |