Index: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
index f9a3af7c6ad148cf9a58ef529b71e0abd36bb8bc..b21cb20124ee394f9cf805b2c7a41b06208f0dcc 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
@@ -515,7 +515,7 @@ class Primitives { |
// sort implementation, we use the JavaScript one instead. |
JS('void', '#.sort()', listOfNamedArguments); |
listOfNamedArguments.forEach((String name) { |
- buffer.add('\$$name'); |
+ buffer.write('\$$name'); |
arguments.add(namedArguments[name]); |
}); |
} |
@@ -1455,10 +1455,10 @@ String joinArguments(var types, int startIndex) { |
if (firstArgument) { |
firstArgument = false; |
} else { |
- buffer. add(', '); |
+ buffer.write(', '); |
} |
var argument = types[index]; |
- buffer.add(runtimeTypeToString(argument)); |
+ buffer.write(runtimeTypeToString(argument)); |
} |
return buffer.toString(); |
} |