| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 patch class ObjectImplementation { | 5 patch class Object { |
| 6 /* patch */ static String toStringImpl(Object object) | 6 /* patch */ String toString() => _toString(this); |
| 7 native "Object_toString"; | |
| 8 | 7 |
| 9 /* patch */ static void noSuchMethodImpl(Object object, | 8 /* patch */ void noSuchMethod(String functionName, List args) { |
| 10 String functionName, | 9 _noSuchMethod(this, functionName, args); |
| 11 List args) | 10 } |
| 11 |
| 12 static void _noSuchMethod(Object obj, String functionName, List args) |
| 12 native "Object_noSuchMethod"; | 13 native "Object_noSuchMethod"; |
| 14 |
| 15 static String _toString(Object obj) native "Object_toString"; |
| 13 } | 16 } |
| OLD | NEW |