(ownerID)
| 142 | // @pragma Mutability |
| 143 | |
| 144 | __ensureOwner(ownerID) { |
| 145 | if (ownerID === this.__ownerID) { |
| 146 | return this; |
| 147 | } |
| 148 | if (!ownerID) { |
| 149 | if (this.size === 0) { |
| 150 | return emptyStack(); |
| 151 | } |
| 152 | this.__ownerID = ownerID; |
| 153 | this.__altered = false; |
| 154 | return this; |
| 155 | } |
| 156 | return makeStack(this.size, this._head, ownerID, this.__hash); |
| 157 | } |
| 158 | |
| 159 | // @pragma Iteration |
| 160 |
nothing calls this directly
no test coverage detected