You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Just to add, if you do:

    function test(){  
      var interval;
      this.a = 0;
      interval = setInterval(function(){
    var b = new test();

    and compare, it looks like this is handled fine. The issue is that undefined+1 (and hence this.a++) returns NaN in other JS implementations, but in Espruino it just returns 1. I'll make a bug for that, and also for a++ errors so at least we can track it.



Avatar for Gordon @Gordon started