UNPKG

defs

Version:

Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.

17 lines (16 loc) 277 B
"use strict"; var x; function named_fn(a, b) { let unique = 1; for (x = 3; x < 10; x++) { var i = 1; let y = 2; console.log(y); } for (let x in [1,2,3,4,5]) { const y = x; console.log(y); } var y,z; } named_fn();