| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index a8e6194f70e24e7fdf19b499567664bd0839e262..c28c1034e611590352e37d41ffc8a77eccd6a867 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -4049,9 +4049,11 @@ DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library,
|
| if (import_vm.IsNull()) {
|
| RETURN_TYPE_ERROR(isolate, import, Library);
|
| }
|
| - const String& prefix_vm = Dart_IsNull(prefix)
|
| + const Object& prefix_object =
|
| + Object::Handle(isolate, Api::UnwrapHandle(prefix));
|
| + const String& prefix_vm = prefix_object.IsNull()
|
| ? String::Handle(isolate, Symbols::New(""))
|
| - : Api::UnwrapStringHandle(isolate, prefix);
|
| + : String::Cast(prefix_object);
|
| if (prefix_vm.IsNull()) {
|
| RETURN_TYPE_ERROR(isolate, prefix, String);
|
| }
|
|
|