ruanyf/es-checker

Says that Firefox Nightly does not support let and const.

grssam opened this issue · 5 comments

Am I missing something ? Firefox has supported let and const since very long ago.

When I try running the following code on any page, no alert comes:

try {
  new Function("'use strict'; let a; const b = 2;");
} catch (ex) { alert(ex) }

if no alerts, it means your browser supports let/const.

try {
  (new Function("'use strict'; let a; const b = 2;"))();
} catch (ex) { 
  alert(ex) 
}

http://jsfiddle.net/bpnzduzq/ works. It alerts NaN

The only thing is that you have to specifically specify js version as 1.7 or above.

fixed it.