Enable assertions for Kotlin daemon in Gradle tests

This commit is contained in:
Alexey Tsvetkov
2019-01-20 20:33:39 +03:00
parent 9176f9b254
commit beabbb95db
4 changed files with 13 additions and 5 deletions
@@ -364,7 +364,7 @@ public class K2JSCompiler extends CLICompiler<K2JSCompilerArguments> {
MessageCollector messageCollector = configuration.getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY);
if (arguments.getTarget() != null) {
assert arguments.getTarget() == "v5" : "Unsupported ECMA version: " + arguments.getTarget();
assert "v5".equals(arguments.getTarget()) : "Unsupported ECMA version: " + arguments.getTarget();
}
configuration.put(JSConfigurationKeys.TARGET, EcmaVersion.defaultVersion());