(operation = null)
| 221 | } |
| 222 | |
| 223 | _isMemoryOperationActive(operation) { |
| 224 | return !!operation |
| 225 | && operation.generation === this.memoryOperationGeneration |
| 226 | && !operation.signal?.aborted |
| 227 | && (operation.allowWhileOff || this._isMemoryFeatureEnabled()); |
| 228 | } |
| 229 | |
| 230 | _assertMemoryOperationActive(operation) { |
| 231 | if (!this._isMemoryOperationActive(operation)) { |
| 232 | throw this._createMemoryOperationAbortError(); |
| 233 | } |
| 234 | } |
no test coverage detected