Index: pkg/compiler/lib/src/options.dart |
diff --git a/pkg/compiler/lib/src/options.dart b/pkg/compiler/lib/src/options.dart |
index 36ec757e478c325f2d30b678f9019ab133088687..169fce92231597d20be679354286499a20f3abe3 100644 |
--- a/pkg/compiler/lib/src/options.dart |
+++ b/pkg/compiler/lib/src/options.dart |
@@ -296,7 +296,8 @@ class CompilerOptions implements DiagnosticOptions { |
enableNativeLiveTypeAnalysis: |
!_hasOption(options, Flags.disableNativeLiveTypeAnalysis), |
enableTypeAssertions: _hasOption(options, Flags.enableCheckedMode), |
- enableUserAssertions: _hasOption(options, Flags.enableCheckedMode), |
+ enableUserAssertions: _hasOption(options, Flags.enableCheckedMode) || |
+ _hasOption(options, Flags.enableAsserts), |
experimentalTrackAllocations: |
_hasOption(options, Flags.experimentalTrackAllocations), |
experimentalAllocationsPath: _extractStringOption( |