* @param {T} data * @returns {void}
(data)
| 840 | * @returns {void} |
| 841 | */ |
| 842 | push(data) { |
| 843 | this.list[this.top] = data; |
| 844 | this.top = this.top + 1 & kMask; |
| 845 | } |
| 846 | /** @returns {T|null} */ |
| 847 | shift() { |
| 848 | const nextItem = this.list[this.bottom]; |
no test coverage detected