The way I understood it data is not supposed to presist between ticks, but it seems to do just that for a short amount of time.
Example code:
let debug = {
counter: 0,
run () {
console.log(debug.counter);
debug.counter++;
},
};
module.exports = debug;
Running debug.run() in the main loop gives me 0, then 1, then 2, then 3 and so on.
Why is this happening?