Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress {es5Strict} does not work #3786

Open
eustas opened this issue Mar 24, 2021 · 4 comments
Open

suppress {es5Strict} does not work #3786

eustas opened this issue Mar 24, 2021 · 4 comments

Comments

@eustas
Copy link

eustas commented Mar 24, 2021

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: bazelbuild/rules_closure#502

@concavelenz
Copy link
Contributor

Can you confirm the version of the compiler you are using?

@eustas
Copy link
Author

eustas commented Mar 24, 2021

closure-compiler-v20210106.jar going to try a newer one (if any)

@eustas
Copy link
Author

eustas commented Mar 24, 2021

closure-compiler-v20210302.jar has the same problem

@concavelenz
Copy link
Contributor

Ok, with strict mode input this is a parse error and thus not suppressible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants