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:
commit
57ef3ea8eb
@ -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];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user