Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // TODO(jmesserly): we need to find a way to avoid conflicts with other | 5 // TODO(vsm): Don't monkey patch Object and make this work on |
| 6 // generated "typeName" fields. Ideally we wouldn't be patching 'Object' here. | 6 // non-chrome browsers. |
| 7 Object.prototype.get$typeName = Object.prototype.$typeNameOf; | 7 Object.prototype.get$typeName = function() { |
| 8 return this.constructor.name; | |
|
Siggi Cherem (dart-lang)
2011/11/18 00:15:45
is this part of the change on purpose?
vsm
2011/11/18 00:22:01
No - thanks for the catch. Will fix and reupload.
| |
| 9 } | |
| OLD | NEW |