| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index 314454544d3137d0ce9ca3db671e16179e63cc9f..93898adc5c69c5b7c51ea6b17078374d2fa7096a 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -165,6 +165,10 @@ DEFINE_RUNTIME_ENTRY(CompileFunction, 1) {
|
| const Error& error =
|
| Error::Handle(Compiler::CompileFunction(thread, function));
|
| if (!error.IsNull()) {
|
| + if (error.IsLanguageError()) {
|
| + Exceptions::ThrowCompileTimeError(LanguageError::Cast(error));
|
| + UNREACHABLE();
|
| + }
|
| Exceptions::PropagateError(error);
|
| }
|
| }
|
|
|