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

Unified Diff: compiler/lib/implementation/string_buffer.dart

Issue 8913006: Expands on previous function RTT to support named/optional parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: compiler/lib/implementation/string_buffer.dart
diff --git a/compiler/lib/implementation/string_buffer.dart b/compiler/lib/implementation/string_buffer.dart
index ff39b13a1752da9ad7e8efd88a9bf55ee3d5a1df..373c78d37a1f851e0f7c80816bc7792285d9fad8 100644
--- a/compiler/lib/implementation/string_buffer.dart
+++ b/compiler/lib/implementation/string_buffer.dart
@@ -42,6 +42,9 @@ class StringBufferImpl implements StringBuffer {
* Adds all items in [objects] to the buffer. Returns [this].
*/
StringBuffer addAll(Collection<Object> objects) {
+ if (objects == null) {
codefu 2011/12/14 16:12:13 Same optimization error; co19/LibTest/core/StringB
+ throw const NullPointerException();
+ }
for (Object obj in objects) {
add(obj);
}

Powered by Google App Engine
This is Rietveld 408576698