Handle incompatibility between Esprima and Acorn ASTs.