(state)
| 24 | } |
| 25 | |
| 26 | function peekCommand(state) { |
| 27 | if (state.cmdState.length > 0) { |
| 28 | return state.cmdState[state.cmdState.length - 1]; |
| 29 | } else { |
| 30 | return null; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | function popCommand(state) { |
| 35 | var plug = state.cmdState.pop(); |
no outgoing calls
no test coverage detected