-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
From @bcherny on February 16, 2017 4:48
- VSCode Version: 1.9.1
- OS Version: OSX 10.12.2 Sierra
Steps to Reproduce:
function merge(as, bs) {
let res = []
let ia = 0
let ib = 0
while (ia < as.length && ib < bs.length) { // coloring broken
if (as[ia] < bs[ib]) {
res.push(as[ia++]) // coloring broken
} else {
res.push(bs[ib++]) // coloring broken
}
}
return res.concat(as.slice(ia)).concat(bs.slice(ib)) // coloring broken
}
function mergesort(array) {
if (array.length < 2) {
return array
}
const mid = Math.floor(array.length / 2)
return merge(mergesort(array.slice(0, mid)), mergesort(array.slice(mid)))
}
Copied from original issue: microsoft/vscode#20692
Metadata
Metadata
Assignees
Labels
No labels