google / google/closure-compiler
CompilerOptions#isStrictModeInput is ignored
Open
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
When I disable `CompilerOptions#isStrictModeInput`, "strict warnings" like` "arguments.caller" cannot be used in ES5 strict mode` are still added to warnings.
I assume this is because this option is ignored in [`DefaultPassConfig`](https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/DefaultPassConfig.java#L494).
A workaround would be to disable `CompilerOptions#setSkipNonTranspilationPasses`, but this also disabled a lot of other checks.
Contributor guide
Assessment
This issue has not been assessed yet.