Compare commits

...

1 Commits

Author SHA1 Message Date
Anton Bannykh
8018af2c3d JS: use '/' as separator on all platforms to prevent sourcemap parse errors 2017-06-09 14:03:21 +03:00

View File

@@ -127,6 +127,9 @@ public class SourceMap3Builder implements SourceMapBuilder {
@Override
public void addMapping(String source, int sourceLine, int sourceColumn) {
if (File.separatorChar != '/') {
source = source.replace(File.separatorChar, '/');
}
boolean newGroupStarted = previousGeneratedColumn == -1;
if (newGroupStarted) {
previousGeneratedColumn = 0;