I'm making this change because espree@2.x removes handlers entirely, so CatchClauses wouldn't be processed. Also, [estree has adopted handler in favor of handlers] https://github.com/eslint/eslint/issues/1930).
Esprima 2.1 and above (and pre-2.x espree) introduce handler while maintaining the old handlers array, so we can use it there too but must ignore handlers.
I'm making this change because espree@2.x removes
handlers
entirely, soCatchClause
s wouldn't be processed. Also, [estree has adoptedhandler
in favor ofhandlers
] https://github.com/eslint/eslint/issues/1930).Esprima 2.1 and above (and pre-2.x espree) introduce
handler
while maintaining the oldhandlers
array, so we can use it there too but must ignorehandlers
.Flipping the ignore to the list, which would only have the one handler anyway, makes this all possible.