| Index: runtime/lib/object_patch.dart
|
| diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart
|
| index 52f1bce50b7db77b2cd01aca4e3ed103ae311149..ae5d5f587ea36c6e2d135c9375787b7696df9e85 100644
|
| --- a/runtime/lib/object_patch.dart
|
| +++ b/runtime/lib/object_patch.dart
|
| @@ -2,12 +2,15 @@
|
| // 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 class ObjectImplementation {
|
| - /* patch */ static String toStringImpl(Object object)
|
| - native "Object_toString";
|
| +patch class Object {
|
| + /* patch */ String toString() => _toString(this);
|
|
|
| - /* patch */ static void noSuchMethodImpl(Object object,
|
| - String functionName,
|
| - List args)
|
| + /* patch */ void noSuchMethod(String functionName, List args) {
|
| + _noSuchMethod(this, functionName, args);
|
| + }
|
| +
|
| + static void _noSuchMethod(Object obj, String functionName, List args)
|
| native "Object_noSuchMethod";
|
| +
|
| + static String _toString(Object obj) native "Object_toString";
|
| }
|
|
|