(frame: FrameBase)
| 29 | } |
| 30 | |
| 31 | export function _popFromFrameStack(frame: FrameBase): void { |
| 32 | if (!frame._isInFrameStack) { |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | const top = topmost(); |
| 37 | if (top !== frame) { |
| 38 | throw new Error('Cannot pop a Frame which is not at the top of the navigation stack.'); |
| 39 | } |
| 40 | |
| 41 | frameStack.pop(); |
| 42 | frame._isInFrameStack = false; |
| 43 | } |
| 44 | |
| 45 | export function _removeFromFrameStack(frame: FrameBase): void { |
| 46 | if (!frame._isInFrameStack) { |
no test coverage detected