From f7e66fc9b615315c242e97073d704e06c38e590f Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:23:05 +0100 Subject: [PATCH] fixed files form Closure #59 --- projects/Closure/59/com/google/javascript/jscomp/Compiler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/Closure/59/com/google/javascript/jscomp/Compiler.java b/projects/Closure/59/com/google/javascript/jscomp/Compiler.java index b3ca246..1d6e494 100644 --- a/projects/Closure/59/com/google/javascript/jscomp/Compiler.java +++ b/projects/Closure/59/com/google/javascript/jscomp/Compiler.java @@ -252,7 +252,8 @@ public void initOptions(CompilerOptions options) { CheckLevel.OFF); } - if (options.checkGlobalThisLevel.isOn()) { + if (options.checkGlobalThisLevel.isOn() && + !options.disables(DiagnosticGroups.GLOBAL_THIS)) { options.setWarningLevel( DiagnosticGroups.GLOBAL_THIS, options.checkGlobalThisLevel);