mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:37:12 +00:00
Clean up service isolate loading error check.
R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/1417963009 .
This commit is contained in:
parent
fc78375928
commit
aaf3c393ab
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue