| 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 'default_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. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'jscomp_error=suspiciousCode', | 32 'jscomp_error=suspiciousCode', |
| 33 'jscomp_error=undefinedNames', | 33 'jscomp_error=undefinedNames', |
| 34 'jscomp_error=undefinedVars', | 34 'jscomp_error=undefinedVars', |
| 35 'jscomp_error=unknownDefines', | 35 'jscomp_error=unknownDefines', |
| 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 'checks_only', |
| 43 'chrome_pass', |
| 42 'polymer_pass', | 44 'polymer_pass', |
| 43 | 45 |
| 44 'source_map_format=V3', | 46 'source_map_format=V3', |
| 45 ], | 47 ], |
| 46 | 48 |
| 47 'default_disabled_closure_args': [ | 49 'default_disabled_closure_args': [ |
| 48 # TODO(dbeam): happens when the same file is <include>d multiple times. | 50 # TODO(dbeam): happens when the same file is <include>d multiple times. |
| 49 'jscomp_off=duplicate', | 51 'jscomp_off=duplicate', |
| 50 # TODO(fukino): happens when cr.defineProperty() has a type annotation. | 52 # TODO(fukino): happens when cr.defineProperty() has a type annotation. |
| 51 # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562. | 53 # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562. |
| 52 'jscomp_off=misplacedTypeAnnotation', | 54 'jscomp_off=misplacedTypeAnnotation', |
| 53 ], | 55 ], |
| 54 } | 56 } |
| OLD | NEW |