google / google/closure-compiler

suppress {es5Strict} does not work

Open
#3,786 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.