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

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

Issue 10878050: Unify Object implementation across dart2js and VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/coreimpl_patch.dart
diff --git a/lib/compiler/implementation/lib/coreimpl_patch.dart b/lib/compiler/implementation/lib/coreimpl_patch.dart
index d48cafe2a2e68d31c025f486d57a4788a957aaa8..5e5659ac332681c3018f032c151d898f685de302 100644
--- a/lib/compiler/implementation/lib/coreimpl_patch.dart
+++ b/lib/compiler/implementation/lib/coreimpl_patch.dart
@@ -4,6 +4,20 @@
// Patch file for dart:core classes.
+// Path for Object implementation.
+// TODO(ager): Split out into object_patch.dart and allow #source
+// in patch files?
+patch class ObjectImplementation {
+ patch static String toStringImpl(Object object) {
+ return Primitives.objectToString(object);
+ }
+
+ patch static void noSuchMethodImpl(Object object, String name, List args) {
+ throw new NoSuchMethodException(object, name, args);
+ }
+}
+
+
// Patch for Date implementation.
// TODO(ager): Split out into date_patch.dart and allow #source
// in patch files?

Powered by Google App Engine
This is Rietveld 408576698