(toCmdIndex)
| 151 | }; |
| 152 | |
| 153 | const skipTo = function (toCmdIndex) { |
| 154 | const toCmd = cmdMap[toCmdIndex]; |
| 155 | cmd = toCmd.cmd; |
| 156 | bus.dispatchEvent(new Event("skip")); |
| 157 | ui(); |
| 158 | }; |
| 159 | |
| 160 | const rewrite = function (command, newCode) { |
| 161 | const parent = command.cmd.parent; |