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 { | 6 { |
6 'closure_args': [ | 7 'closure_args': [ |
7 'compilation_level=SIMPLE_OPTIMIZATIONS', | 8 'compilation_level=SIMPLE_OPTIMIZATIONS', |
| 9 |
| 10 # Keep this in sync with chrome/browser/web_dev_style/js_checker.py. |
8 'extra_annotation_name=attribute', | 11 'extra_annotation_name=attribute', |
9 'extra_annotation_name=demo', | 12 'extra_annotation_name=demo', |
10 'extra_annotation_name=element', | 13 'extra_annotation_name=element', |
11 'extra_annotation_name=group', | 14 'extra_annotation_name=group', |
12 'extra_annotation_name=hero', | 15 'extra_annotation_name=hero', |
13 'extra_annotation_name=homepage', | 16 'extra_annotation_name=homepage', |
14 'extra_annotation_name=status', | 17 'extra_annotation_name=status', |
15 'extra_annotation_name=submodule', | 18 'extra_annotation_name=submodule', |
| 19 |
16 'jscomp_error=accessControls', | 20 'jscomp_error=accessControls', |
17 'jscomp_error=ambiguousFunctionDecl', | 21 'jscomp_error=ambiguousFunctionDecl', |
18 'jscomp_error=checkTypes', | 22 'jscomp_error=checkTypes', |
19 'jscomp_error=checkVars', | 23 'jscomp_error=checkVars', |
20 'jscomp_error=constantProperty', | 24 'jscomp_error=constantProperty', |
21 'jscomp_error=deprecated', | 25 'jscomp_error=deprecated', |
22 'jscomp_error=externsValidation', | 26 'jscomp_error=externsValidation', |
23 'jscomp_error=globalThis', | 27 'jscomp_error=globalThis', |
24 'jscomp_error=invalidCasts', | 28 'jscomp_error=invalidCasts', |
25 'jscomp_error=missingProperties', | 29 'jscomp_error=missingProperties', |
26 'jscomp_error=missingReturn', | 30 'jscomp_error=missingReturn', |
27 'jscomp_error=nonStandardJsDocs', | 31 'jscomp_error=nonStandardJsDocs', |
28 'jscomp_error=suspiciousCode', | 32 'jscomp_error=suspiciousCode', |
29 'jscomp_error=undefinedNames', | 33 'jscomp_error=undefinedNames', |
30 'jscomp_error=undefinedVars', | 34 'jscomp_error=undefinedVars', |
31 'jscomp_error=unknownDefines', | 35 'jscomp_error=unknownDefines', |
32 'jscomp_error=uselessCode', | 36 'jscomp_error=uselessCode', |
33 'jscomp_error=visibility', | 37 'jscomp_error=visibility', |
| 38 |
34 'language_in=ECMASCRIPT6_STRICT', | 39 'language_in=ECMASCRIPT6_STRICT', |
35 'language_out=ECMASCRIPT5_STRICT', | 40 'language_out=ECMASCRIPT5_STRICT', |
| 41 |
36 'polymer_pass', | 42 'polymer_pass', |
| 43 |
37 'source_map_format=V3', | 44 'source_map_format=V3', |
38 ], | 45 ], |
39 'default_disabled_closure_args': [ | 46 'default_disabled_closure_args': [ |
40 # TODO(dbeam): happens when the same file is <include>d multiple times. | 47 # TODO(dbeam): happens when the same file is <include>d multiple times. |
41 'jscomp_off=duplicate', | 48 'jscomp_off=duplicate', |
42 # TODO(fukino): happens when cr.defineProperty() has a type annotation. | 49 # TODO(fukino): happens when cr.defineProperty() has a type annotation. |
43 # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562. | 50 # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562. |
44 'jscomp_off=misplacedTypeAnnotation', | 51 'jscomp_off=misplacedTypeAnnotation', |
45 ] | 52 ] |
46 } | 53 } |
OLD | NEW |