| Index: pkg/compiler/lib/src/js_backend/backend.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
|
| index 3e4fcdfcff2c097760da0c86469d12968a7a05b5..bf9c1ab7b4190114223e2daefac81fe1f8e8c019 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -2370,7 +2370,7 @@ class JavaScriptBackend extends Backend {
|
| enabledNoSuchMethod = true;
|
| }
|
|
|
| - if (compiler.options.useKernel) {
|
| + if (compiler.options.useKernel && compiler.mainApp != null) {
|
| kernelTask.buildKernelIr();
|
| }
|
|
|
|
|