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

Unified Diff: pkg/compiler/lib/src/io/location_provider.dart

Issue 2864573002: dart2js allocation tweaks (Closed)
Patch Set: Created 3 years, 7 months 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: pkg/compiler/lib/src/io/location_provider.dart
diff --git a/pkg/compiler/lib/src/io/location_provider.dart b/pkg/compiler/lib/src/io/location_provider.dart
index 1ac9af76e7429e52f5d41ff655691939e2baeff4..a015babe4aedbf2142eea6618ad295639bb7187a 100644
--- a/pkg/compiler/lib/src/io/location_provider.dart
+++ b/pkg/compiler/lib/src/io/location_provider.dart
@@ -39,8 +39,7 @@ class LocationCollector extends CodeOutputListener implements LocationProvider {
@override
Location getLocation(int offset) {
- RangeError.checkValueInInterval(offset, 0, length, "offset",
- "The value of 'offset' ($offset) must be between 0 and $length.");
+ RangeError.checkValueInInterval(offset, 0, length, 'offset');
return new Source(lineStarts, null).getLocation(null, offset);
}

Powered by Google App Engine
This is Rietveld 408576698