(ownerID)
| 73 | } |
| 74 | |
| 75 | __ensureOwner(ownerID) { |
| 76 | if (ownerID === this.__ownerID) { |
| 77 | return this; |
| 78 | } |
| 79 | const newMap = this._map.__ensureOwner(ownerID); |
| 80 | const newList = this._list.__ensureOwner(ownerID); |
| 81 | if (!ownerID) { |
| 82 | if (this.size === 0) { |
| 83 | return emptyOrderedMap(); |
| 84 | } |
| 85 | this.__ownerID = ownerID; |
| 86 | this.__altered = false; |
| 87 | this._map = newMap; |
| 88 | this._list = newList; |
| 89 | return this; |
| 90 | } |
| 91 | return makeOrderedMap(newMap, newList, ownerID, this.__hash); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | OrderedMap.isOrderedMap = isOrderedMap; |
nothing calls this directly
no test coverage detected