Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 10899030: Fix compilation errors on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698