Skip to content

Commit 8a57c1d

Browse files
jakemac53commit-bot@chromium.org
authored andcommitted
handle range errors when getting locations
Bug: #37018 Change-Id: I7a9e0d4186abe37133ef29c719a81461e26cc54f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105340 Auto-Submit: Jake Macdonald <[email protected]> Reviewed-by: Vijay Menon <[email protected]> Commit-Queue: Jake Macdonald <[email protected]>
1 parent 9f2f5ad commit 8a57c1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/dev_compiler/lib/src/kernel/compiler.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,6 +3127,8 @@ class ProgramCompiler extends Object
31273127
// TODO(jmesserly): figure out why this is throwing. Perhaps the file URI
31283128
// and offset are mismatched and don't correspond to the same source?
31293129
return null;
3130+
} on RangeError catch (_) {
3131+
return null;
31303132
}
31313133
}
31323134

0 commit comments

Comments
 (0)