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

Unified Diff: sdk/lib/_internal/lib/js_helper.dart

Issue 163773003: Emit named parameter information in declaration order. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bug and add regression test. Created 6 years, 10 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
« no previous file with comments | « no previous file | tests/corelib/apply2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_helper.dart
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart
index 9eff25f46695f1ed79d049057af774798aeb6bed..c9134a2e5be9f381bd7feed0f5b62740b84c454c 100644
--- a/sdk/lib/_internal/lib/js_helper.dart
+++ b/sdk/lib/_internal/lib/js_helper.dart
@@ -455,7 +455,7 @@ class ReflectionInfo {
}
int index = 0;
(positions.keys.toList()..sort()).forEach((String name) {
- cachedSortedIndices[index++] = positions[name] + requiredParameterCount;
+ cachedSortedIndices[index++] = positions[name];
});
}
return cachedSortedIndices[unsortedIndex];
« no previous file with comments | « no previous file | tests/corelib/apply2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698