Chromium Code Reviews| Index: vm/dart_api_impl.cc |
| =================================================================== |
| --- vm/dart_api_impl.cc (revision 17180) |
| +++ vm/dart_api_impl.cc (working copy) |
| @@ -1787,7 +1787,7 @@ |
| "[%"Pd"..%"Pd"].", |
| str_size, String::kMaxElements); |
| } |
| - if (str_obj.IsCanonical()) { |
| + if (str_obj.InVMHeap()) { |
| // Since the string object is read only we do not externalize |
| // the string but instead copy the contents of the string into the |
| // specified buffer and return a Null object. |