Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart

Issue 2510073002: Provide source map info for simple async methods. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
index ddb6fdc80503a52a2dcae85294bc1813a0fc343f..423c054085fb7047d07ba6da5fd88379c11ba42a 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
@@ -307,7 +307,9 @@ List<CodeLine> convertAnnotatedCodeToCodeLines(
void addAnnotations(List<Annotation> annotations) {
currentAnnotations.addAll(annotations);
- currentLine.annotations.addAll(annotations);
+ if (currentLine != null) {
+ currentLine.annotations.addAll(annotations);
+ }
}
void beginLine(int currentOffset) {

Powered by Google App Engine
This is Rietveld 408576698