sites icon indicating copy to clipboard operation
sites copied to clipboard

REPL: Events defined with addEventListener() are not undefined after quick update, thus making them duplicate

Open thonkinator opened this issue 2 years ago • 1 comments

To reproduce this, create an event listener with addEventListener() (any event, like a keypress) and make it console.log the number 1. This works fine. However, change the 1 to a 2, causing a reload, and now 1 and 2 will be logged when the event is fired. This means that the events are not being undefined, which could cause unwanted bugs in the REPL.

thonkinator avatar May 14 '22 18:05 thonkinator

Similar #146

bluwy avatar May 15 '22 13:05 bluwy