Clean up service isolate loading error check.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1417963009 .
This commit is contained in:
Ryan Macnak 2015-10-30 09:11:13 -07:00
parent fc78375928
commit aaf3c393ab

View file

@ -684,9 +684,8 @@ Dart_Handle DartUtils::PrepareBuiltinLibrary(Dart_Handle builtin_lib,
// Wait for the service isolate to initialize the load port.
Dart_Port load_port = Dart_ServiceWaitForLoadPort();
if (load_port == ILLEGAL_PORT) {
// TODO(rmacnak): Return an error handle here once precompilation_test
// works.
return NewDartUnsupportedError("Service did not return load port.");
return Dart_NewUnhandledExceptionError(
NewDartUnsupportedError("Service did not return load port."));
}
result = Builtin::SetLoadPort(load_port);
RETURN_IF_ERROR(result);