shapesecurity / shift-parser-js

ECMAScript parser that produces a Shift format AST
http://shift-ast.org/parser.html
Apache License 2.0
245 stars 28 forks source link

function and lexical bindings do not conflict at the top level of functions #444

Open bakkot opened 3 years ago

bakkot commented 3 years ago
'use strict';
function f(){
  let a;
  function a(){}
}

parses without error. It should not.