If someone use ES6 features while the spec isn't done yet, he takes the risk of having his code breaking as the specification evolve.

In this case, he would have to rewrite his code as

   var foo = function() {
       eval {
           let x = 42;
           console.log( x );
       }
       eval {
           let x = 24;
           console.log( x );
       }
   }

François
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to