Chromium Code Reviews| Index: runtime/vm/bootstrap.cc |
| =================================================================== |
| --- runtime/vm/bootstrap.cc (revision 38794) |
| +++ runtime/vm/bootstrap.cc (working copy) |
| @@ -150,7 +150,9 @@ |
| if (error.IsNull()) { |
| library.SetLoaded(); |
| } else { |
| - library.SetLoadError(); |
| + // Compilation errors are not Dart instances, so just mark the library |
| + // as having failed to load without providing an error instance. |
| + library.SetLoadError(Instance::Handle()); |
| } |
| } |
| return error.raw(); |