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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 219053003: Deprecate automatic generation of precompiled.js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 9 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
Index: sdk/lib/_internal/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index b29364f38b563582e5c6f15f79e9fc242c7e05b4..5d2349deada7037e59ab6b8c5616e33feabfaf71 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -297,6 +297,7 @@ Future compile(List<String> argv) {
new OptionHandler('--disallow-unsafe-eval',
(_) => hasDisallowUnsafeEval = true),
new OptionHandler('--show-package-warnings', passThrough),
+ new OptionHandler('--csp', passThrough),
new OptionHandler('-D.+=.*', addInEnvironment),
// The following two options must come last.
@@ -575,6 +576,10 @@ Supported options:
--show-package-warnings
Show warnings and hints generated from packages.
+ --csp
+ Disables dynamic generation of code in the generated output. This is
+ necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).
+
The following options are only used for compiler development and may
be removed in a future version:

Powered by Google App Engine
This is Rietveld 408576698