Misc: Protect freeArgs with FreezableVar

This commit is contained in:
Alexey Sedunov
2017-10-12 19:46:18 +03:00
parent fa4e4cbb42
commit 87f3d24f9b
8 changed files with 16 additions and 12 deletions
@@ -59,6 +59,7 @@ private fun readV1Config(element: Element): KotlinFacetSettings {
val jsArgumentsElement = compilerInfoElement?.getOptionBody("k2jsCompilerArguments")
val compilerArguments = targetPlatform.createCompilerArguments()
compilerArguments.freeArgs = ArrayList()
commonArgumentsElement?.let { XmlSerializer.deserializeInto(compilerArguments, it) }
when (compilerArguments) {