google / google/closure-compiler

CompilerOptions#isStrictModeInput is ignored

Open
#2,293 8 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

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

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.