JS: rewrite source map generator to use specialized JSON writer

Fixes problems with string escaping. See KT-20005
This commit is contained in:
Alexey Andreev
2017-09-05 16:23:22 +03:00
committed by Alexey Andreev
parent 187ca71dc6
commit 361d6dfca0
7 changed files with 48 additions and 39 deletions
@@ -545,6 +545,12 @@ public class CliTestGenerated extends AbstractCliTest {
doJsTest(fileName);
}
@TestMetadata("sourceMapCharEscape.args")
public void testSourceMapCharEscape() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cli/js/sourceMapCharEscape.args");
doJsTest(fileName);
}
@TestMetadata("sourceMapDuplicateRelativePaths.args")
public void testSourceMapDuplicateRelativePaths() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cli/js/sourceMapDuplicateRelativePaths.args");