google / google/closure-compiler
suppress {es5Strict} does not work
Open
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
File `example.js`:
```
/** @suppress {es5Strict} */
function hello() {
var a = "\306";
}
```
Command: `java -jar closure-compiler.jar example.js`
Output:
```
example.js:3:10: WARNING - [JSC_INVALID_OCTAL_LITERAL] This style of octal literal is not supported in strict mode.
3| var a = "\306";
^
0 error(s), 1 warning(s)
function hello(){};
```
Related bug: https://github.com/bazelbuild/rules_closure/issues/502
Contributor guide
Assessment
This issue has not been assessed yet.