Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Unified Diff: pkg/compiler/lib/src/options.dart

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Added !$checked to section predicate in co19 status file Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/expect/lib/expect.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/expect/lib/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698