Chromium Code Reviews| Index: runtime/vm/dart_api_impl.cc |
| =================================================================== |
| --- runtime/vm/dart_api_impl.cc (revision 27908) |
| +++ runtime/vm/dart_api_impl.cc (working copy) |
| @@ -3661,6 +3661,9 @@ |
| if (RawObject::IsStringClassId(obj.GetClassId())) { |
| return Api::NewHandle(isolate, obj.raw()); |
| } |
| + if (obj.IsNull()) { |
| + return Api::Null(); |
| + } |
| return Api::NewError("%s expects argument to be of" |
| " type String.", CURRENT_FUNC); |
| } |