(input, output)
| 257 | }; |
| 258 | |
| 259 | const makeConsoleHistoryEntry = function (input, output) { |
| 260 | if (!output) { |
| 261 | const result = _hyperscript.parse(input); |
| 262 | output = result.execute |
| 263 | ? result.execute(ctx) |
| 264 | : result.evaluate(ctx); |
| 265 | } |
| 266 | |
| 267 | return '<li class="console-entry">' + |
| 268 | '<kbd><code class="input">' + escapeHTML(input) + '</code></kbd>' + |
| 269 | '<samp class="output">' + prettyPrint(output) + '</samp>' + |
| 270 | '</li>'; |
| 271 | }; |
| 272 | |
| 273 | const evaluateExpression = function (input) { |
| 274 | consoleHistory.push(input); |
no test coverage detected