Index: runtime/lib/function_patch.dart |
diff --git a/runtime/lib/function_patch.dart b/runtime/lib/function_patch.dart |
index 56b817dada646d2dd478ea2caebbc8c1aa264c47..68497a5fc4674efbb78f8248ba965c4dc835b55f 100644 |
--- a/runtime/lib/function_patch.dart |
+++ b/runtime/lib/function_patch.dart |
@@ -15,7 +15,7 @@ patch class Function { |
int numArguments = numPositionalArguments + numNamedArguments; |
List arguments = new List(numArguments); |
arguments[0] = function; |
- arguments.setRange(1, numPositionalArguments - 1, positionalArguments); |
+ arguments.setRange(1, numPositionalArguments, positionalArguments); |
List names = new List(numNamedArguments); |
int argumentIndex = numPositionalArguments; |
int nameIndex = 0; |