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

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

Issue 10918047: First corelib cleanup patch after unification. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove bogus comment. Created 8 years, 3 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: lib/compiler/implementation/lib/core_patch.dart
diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart
new file mode 100644
index 0000000000000000000000000000000000000000..aea4c6c7c2e0df68062931c651de31cddc668398
--- /dev/null
+++ b/lib/compiler/implementation/lib/core_patch.dart
@@ -0,0 +1,16 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Patch file for dart:core classes.
+
+// Patch for Object implementation.
+patch class Object {
+ patch String toString() {
+ return Primitives.objectToString(this);
+ }
+
+ patch void noSuchMethod(String name, List args) {
+ throw new NoSuchMethodException(this, name, args);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698