OLD | NEW |
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 # GN version: third_party/closure_compiler/closure_args.gni | 5 # GN version: third_party/closure_compiler/closure_args.gni |
6 { | 6 { |
7 'closure_args': [ | 7 'default_closure_args': [ |
8 'compilation_level=SIMPLE_OPTIMIZATIONS', | 8 'compilation_level=SIMPLE_OPTIMIZATIONS', |
9 | 9 |
10 # Keep this in sync with chrome/browser/web_dev_style/js_checker.py. | 10 # Keep this in sync with chrome/browser/web_dev_style/js_checker.py. |
11 'extra_annotation_name=attribute', | 11 'extra_annotation_name=attribute', |
12 'extra_annotation_name=demo', | 12 'extra_annotation_name=demo', |
13 'extra_annotation_name=element', | 13 'extra_annotation_name=element', |
14 'extra_annotation_name=group', | 14 'extra_annotation_name=group', |
15 'extra_annotation_name=hero', | 15 'extra_annotation_name=hero', |
16 'extra_annotation_name=homepage', | 16 'extra_annotation_name=homepage', |
17 'extra_annotation_name=status', | 17 'extra_annotation_name=status', |
(...skipping 18 matching lines...) Expand all Loading... |
36 'jscomp_error=uselessCode', | 36 'jscomp_error=uselessCode', |
37 'jscomp_error=visibility', | 37 'jscomp_error=visibility', |
38 | 38 |
39 'language_in=ECMASCRIPT6_STRICT', | 39 'language_in=ECMASCRIPT6_STRICT', |
40 'language_out=ECMASCRIPT5_STRICT', | 40 'language_out=ECMASCRIPT5_STRICT', |
41 | 41 |
42 'polymer_pass', | 42 'polymer_pass', |
43 | 43 |
44 'source_map_format=V3', | 44 'source_map_format=V3', |
45 ], | 45 ], |
| 46 |
46 'default_disabled_closure_args': [ | 47 'default_disabled_closure_args': [ |
47 # TODO(dbeam): happens when the same file is <include>d multiple times. | 48 # TODO(dbeam): happens when the same file is <include>d multiple times. |
48 'jscomp_off=duplicate', | 49 'jscomp_off=duplicate', |
49 # TODO(fukino): happens when cr.defineProperty() has a type annotation. | 50 # TODO(fukino): happens when cr.defineProperty() has a type annotation. |
50 # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562. | 51 # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562. |
51 'jscomp_off=misplacedTypeAnnotation', | 52 'jscomp_off=misplacedTypeAnnotation', |
52 ] | 53 ], |
53 } | 54 } |
OLD | NEW |