Fix attaching source maps to JS file

This commit is contained in:
Alexey Andreev 2016-12-03 14:05:13 +03:00
parent ad39024795
commit f96aa54461

View File

@ -444,10 +444,11 @@ public class TeaVMTool implements BaseTeaVMTool {
if (targetType == TeaVMTargetType.JAVASCRIPT) {
try (OutputStream output = new FileOutputStream(new File(targetDirectory, outputName), true)) {
Writer writer = new OutputStreamWriter(output, "UTF-8");
try (Writer writer = new OutputStreamWriter(output, "UTF-8")) {
additionalJavaScriptOutput(writer);
}
}
}
if (incremental) {
programCache.flush();