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

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

Issue 2021553002: Make whitelist check per element (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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 | « lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/compiler.dart
diff --git a/lib/src/compiler/compiler.dart b/lib/src/compiler/compiler.dart
index 454e964bd638695ca9eee950a089a0826c9078ed..6ef2fef43778715cb6799449050187bfe0ca4f27 100644
--- a/lib/src/compiler/compiler.dart
+++ b/lib/src/compiler/compiler.dart
@@ -171,6 +171,8 @@ class CompilerOptions {
/// Hoist types in type tests
final bool hoistTypeTests;
+ final bool useUncheckedWhitelist;
+
/// Enable ES6 destructuring of named parameters. Off by default.
///
/// Older V8 versions do not accept default values with destructuring in
@@ -203,7 +205,8 @@ class CompilerOptions {
this.hoistInstanceCreation: true,
this.hoistSignatureTypes: false,
this.nameTypeTests: true,
- this.hoistTypeTests: true});
+ this.hoistTypeTests: true,
+ this.useUncheckedWhitelist: false});
CompilerOptions.fromArguments(ArgResults args)
: sourceMap = args['source-map'],
@@ -217,7 +220,8 @@ class CompilerOptions {
hoistInstanceCreation = args['hoist-instance-creation'],
hoistSignatureTypes = args['hoist-signature-types'],
nameTypeTests = args['name-type-tests'],
- hoistTypeTests = args['hoist-type-tests'];
+ hoistTypeTests = args['hoist-type-tests'],
+ useUncheckedWhitelist = args['use-unchecked-whitelist'];
static ArgParser addArguments(ArgParser parser) => parser
..addFlag('summarize', help: 'emit an API summary file', defaultsTo: true)
@@ -255,7 +259,8 @@ class CompilerOptions {
..addFlag('name-type-tests',
help: 'Name types used in type tests', defaultsTo: true)
..addFlag('hoist-type-tests',
- help: 'Hoist types used in type tests', defaultsTo: true);
+ help: 'Hoist types used in type tests', defaultsTo: true)
+ ..addFlag('use-unchecked-whitelist', defaultsTo: false, hide: true);
vsm 2016/06/01 19:02:14 How about 'unsafe-angular2-whitelist' ?
Leaf 2016/06/01 20:04:05 Done.
}
/// A unit of Dart code that can be built into a single JavaScript module.
« no previous file with comments | « lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698