Index: runtime/vm/object.h |
=================================================================== |
--- runtime/vm/object.h (revision 39368) |
+++ runtime/vm/object.h (working copy) |
@@ -262,6 +262,7 @@ |
bool IsNull() const { return raw_ == null_; } |
+ // Matches Object.toString on instances (except String::ToCString, bug 20583). |
virtual const char* ToCString() const { |
if (IsNull()) { |
return "null"; |
@@ -5004,7 +5005,8 @@ |
class Number : public Instance { |
public: |
- // TODO(iposva): Fill in a useful Number interface. |
+ // TODO(iposva): Add more useful Number methods. |
+ RawString* ToString(Heap::Space space) const; |
private: |
OBJECT_IMPLEMENTATION(Number, Instance); |