Right. Unfortunately, I don't know how to tell TypeScript that ArrayBuffer.slice is a thing (it's unsupported by phantomjs, too, for our unit tests).