Chromium Code Reviews| 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. |