| 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 file for dart:core classes. | 5 // Patch file for dart:core classes. |
| 6 #import('js_helper.dart'); | |
| 7 | 6 |
| 8 // Patch for Object implementation. | 7 // Patch for Object implementation. |
| 9 patch class Object { | 8 patch class Object { |
| 10 patch String toString() { | 9 patch String toString() { |
| 11 return Primitives.objectToString(this); | 10 return Primitives.objectToString(this); |
| 12 } | 11 } |
| 13 | 12 |
| 14 patch void noSuchMethod(String name, List args) { | 13 patch void noSuchMethod(String name, List args) { |
| 15 throw new NoSuchMethodException(this, name, args); | 14 throw new NoSuchMethodException(this, name, args); |
| 16 } | 15 } |
| 17 } | 16 } |
| OLD | NEW |