| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,7 +56,7 @@ const kMask = kSize - 1; | |||
| 56 | 56 | // `top + 1 === bottom` it's full. This wastes a single space of storage | |
| 57 | 57 | // but allows much quicker checks. | |
| 58 | 58 | ||
| 59 | - const FixedCircularBuffer = class FixedCircularBuffer { | ||
| 59 | + class FixedCircularBuffer { | ||
| 60 | 60 | constructor() { | |
| 61 | 61 | this.bottom = 0; | |
| 62 | 62 | this.top = 0; | |
@@ -85,7 +85,7 @@ const FixedCircularBuffer = class FixedCircularBuffer { | |||
| 85 | 85 | this.bottom = (this.bottom + 1) & kMask; | |
| 86 | 86 | return nextItem; | |
| 87 | 87 | } | |
| 88 | - }; | ||
| 88 | + } | ||
| 89 | 89 | ||
| 90 | 90 | module.exports = class FixedQueue { | |
| 91 | 91 | constructor() { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments