JS: fix source map generation in some cases

This commit is contained in:
Alexey Andreev 2019-10-28 14:33:53 +03:00
parent 6ed00f1af2
commit 15be89a758

View File

@ -26,8 +26,10 @@ class LayerIterator {
methodIterators[i] = new MethodIterator(debugInformation.layers[i]); methodIterators[i] = new MethodIterator(debugInformation.layers[i]);
} }
if (!isEndReached()) {
nextImpl(); nextImpl();
} }
}
public boolean isEndReached() { public boolean isEndReached() {
return currentLayer == 0 && methodIterators[currentLayer].isEndReached(); return currentLayer == 0 && methodIterators[currentLayer].isEndReached();