Rich-Harris / estree-walker

Traverse an ESTree-compliant AST
MIT License
389 stars 37 forks source link

add type checking for enter and leave #10

Closed iggredible closed 3 years ago

iggredible commented 5 years ago

When user passes non-function as enter and leave, it will throw an error. This should fix it.

Rich-Harris commented 3 years ago

Thanks — though I think it should throw an error in this situation. Silent failures are the worst kind of failure