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

Side by Side Diff: third_party/closure_compiler/closure_args.gni

Issue 2921143002: Reverse accidental enabling of 'use strict' in closure compiler (Closed)
Patch Set: emit_use_strict=false Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Args for all uses of the closure compiler 5 # Args for all uses of the closure compiler
6 common_closure_args = [ 6 common_closure_args = [
7 "extra_annotation_name=attribute", 7 "extra_annotation_name=attribute",
8 "extra_annotation_name=demo", 8 "extra_annotation_name=demo",
9 "extra_annotation_name=element", 9 "extra_annotation_name=element",
10 "extra_annotation_name=group", 10 "extra_annotation_name=group",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 "chrome_pass", 46 "chrome_pass",
47 "polymer_pass", 47 "polymer_pass",
48 ] 48 ]
49 49
50 # Additional closure arguments for minifying 50 # Additional closure arguments for minifying
51 minifying_closure_args = [ 51 minifying_closure_args = [
52 "compilation_level=WHITESPACE_ONLY", 52 "compilation_level=WHITESPACE_ONLY",
53 53
54 "language_in=ECMASCRIPT_NEXT", 54 "language_in=ECMASCRIPT_NEXT",
55 "language_out=ECMASCRIPT6", 55 "language_out=ECMASCRIPT6",
56 "emit_use_strict=false",
dpapad 2017/06/05 17:31:31 Can you elaborate a bit on what is the exact probl
wychen 2017/06/05 17:35:08 I agree enabling "use strict" is the right directi
dpapad 2017/06/05 17:51:23 I see. Can you file a bug listing the known issue
wychen 2017/06/05 18:25:56 I'll add a TODO. The thing I worry the most is th
wychen 2017/06/05 20:21:54 Done.
56 ] 57 ]
57 58
58 # For compatibility with old uses. 59 # For compatibility with old uses.
59 default_closure_args = common_closure_args + checking_closure_args 60 default_closure_args = common_closure_args + checking_closure_args
60 61
61 default_disabled_closure_args = [ 62 default_disabled_closure_args = [
62 "jscomp_off=duplicate", 63 "jscomp_off=duplicate",
63 "jscomp_off=misplacedTypeAnnotation", 64 "jscomp_off=misplacedTypeAnnotation",
64 ] 65 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698