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

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 2579523003: add --assert-message flag back (Closed)
Patch Set: git cl land Created 4 years 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' show EventSink, Future; 7 import 'dart:async' show EventSink, Future;
8 import 'dart:convert' show UTF8, LineSplitter; 8 import 'dart:convert' show UTF8, LineSplitter;
9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr;
10 10
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 new OptionHandler(Flags.disableInlining, implyCompilation), 370 new OptionHandler(Flags.disableInlining, implyCompilation),
371 new OptionHandler(Flags.disableTypeInference, implyCompilation), 371 new OptionHandler(Flags.disableTypeInference, implyCompilation),
372 new OptionHandler(Flags.terse, passThrough), 372 new OptionHandler(Flags.terse, passThrough),
373 new OptionHandler('--deferred-map=.+', implyCompilation), 373 new OptionHandler('--deferred-map=.+', implyCompilation),
374 new OptionHandler(Flags.dumpInfo, implyCompilation), 374 new OptionHandler(Flags.dumpInfo, implyCompilation),
375 new OptionHandler( 375 new OptionHandler(
376 '--disallow-unsafe-eval', (_) => hasDisallowUnsafeEval = true), 376 '--disallow-unsafe-eval', (_) => hasDisallowUnsafeEval = true),
377 new OptionHandler(Option.showPackageWarnings, passThrough), 377 new OptionHandler(Option.showPackageWarnings, passThrough),
378 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), 378 new OptionHandler(Flags.useContentSecurityPolicy, passThrough),
379 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), 379 new OptionHandler(Flags.enableExperimentalMirrors, passThrough),
380 new OptionHandler(Flags.enableAssertMessage, passThrough),
380 381
381 // TODO(floitsch): remove conditional directives flag. 382 // TODO(floitsch): remove conditional directives flag.
382 // We don't provide the info-message yet, since we haven't publicly 383 // We don't provide the info-message yet, since we haven't publicly
383 // launched the feature yet. 384 // launched the feature yet.
384 new OptionHandler(Flags.conditionalDirectives, (_) {}), 385 new OptionHandler(Flags.conditionalDirectives, (_) {}),
385 new OptionHandler('--enable-async', (_) { 386 new OptionHandler('--enable-async', (_) {
386 hints.add("Option '--enable-async' is no longer needed. " 387 hints.add("Option '--enable-async' is no longer needed. "
387 "Async-await is supported by default."); 388 "Async-await is supported by default.");
388 }), 389 }),
389 new OptionHandler('--enable-null-aware-operators', (_) { 390 new OptionHandler('--enable-null-aware-operators', (_) {
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 @override 1033 @override
1033 void close() { 1034 void close() {
1034 // Do nothing. 1035 // Do nothing.
1035 } 1036 }
1036 1037
1037 @override 1038 @override
1038 void addError(errorEvent, [StackTrace stackTrace]) { 1039 void addError(errorEvent, [StackTrace stackTrace]) {
1039 // Ignore 1040 // Ignore
1040 } 1041 }
1041 } 1042 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698