Merge pull request #3567 from loganfsmyth/fix-generator-buffer-getlast

Use the first item in the queue since it is the most recent.
This commit is contained in:
Logan Smyth 2016-07-06 23:45:46 -07:00 committed by GitHub
commit 57ef3ea8eb

View File

@ -99,7 +99,7 @@ export default class Buffer {
getLast(): string {
if (this._queue.length > 0) {
const last = this._queue[this._queue.length - 1][0];
const last = this._queue[0][0];
return last[last.length - 1];
}