| Index: runtime/vm/bootstrap.cc
|
| diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc
|
| index 8cb5d77959a201811b6f6610f17ec7738f822993..07da82231471b0caaa1f1448f18549d5d5bfc0b2 100644
|
| --- a/runtime/vm/bootstrap.cc
|
| +++ b/runtime/vm/bootstrap.cc
|
| @@ -355,9 +355,12 @@ RawError* Bootstrap::LoadandCompileScripts() {
|
| // Eagerly compile the _Closure class as it is the class of all closure
|
| // instances. This allows us to just finalize function types
|
| // without going through the hoops of trying to compile their scope class.
|
| - const Class& cls =
|
| + Class& cls =
|
| Class::Handle(zone, isolate->object_store()->closure_class());
|
| Compiler::CompileClass(cls);
|
| + // Eagerly compile Bool class, bool constants are used from within compiler.
|
| + cls = isolate->object_store()->bool_class();
|
| + Compiler::CompileClass(cls);
|
| }
|
|
|
| // Restore the library tag handler for the isolate.
|
|
|