Closed
Description
Nature of issue?
- Existing feature enhancement
Feature enhancement details:
Consider the following code:
function draw() {
print("hello");
}
Run it and you will get an output similar to this:
(12) hello
(5) hello
(6) hello
...
Basically, the number of times parameter keeps changing, and a new console event keeps getting logged, even though the console event is literally the same. Therefore, I feel this can be considered as a feature enhancement, to merge together exactly same console events if they are consecutive.
Proposed solution: check if the messageEvent
in the handleConsoleEvent
in PreviewFrame.jsx
is the same as the last one in this.props.consoleEvents
. If so, simply increment the times
property of the last event. I will attempt to submit a related PR right now.