Skip to content
Snippets Groups Projects
Commit e2042a9a authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Remove let in code that should be ES5

parent 61023686
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@
if (orig.length == folded.length) return pos
for (var min = 0, max = pos + Math.max(0, orig.length - folded.length);;) {
if (min == max) return min
let mid = (min + max) >> 1
var mid = (min + max) >> 1
var len = foldFunc(orig.slice(0, mid)).length
if (len == pos) return mid
else if (len > pos) max = mid - 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment