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

Unified Diff: sdk/lib/js/dart2js/js_dart2js.dart

Issue 2924423003: Complain about use before declaration. (Closed)
Patch Set: Created 3 years, 6 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: sdk/lib/js/dart2js/js_dart2js.dart
diff --git a/sdk/lib/js/dart2js/js_dart2js.dart b/sdk/lib/js/dart2js/js_dart2js.dart
index 30a8e21b1c79b2688c54b8484cfca482bba3f228..abe5139ccd1115f3a5a0b758ac065a7fd74bf949 100644
--- a/sdk/lib/js/dart2js/js_dart2js.dart
+++ b/sdk/lib/js/dart2js/js_dart2js.dart
@@ -500,7 +500,7 @@ class JsArray<E> extends JsObject with ListMixin<E> {
void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
_checkRange(start, end, length);
- int length = end - start;
+ length = end - start;
if (length == 0) return;
if (skipCount < 0) throw new ArgumentError(skipCount);
var args = [start, length]..addAll(iterable.skip(skipCount).take(length));
« no previous file with comments | « pkg/front_end/testcases/inference/infer_local_function_return_type.dart.strong.expect ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698