use this fork of esprima https://github.com/node-projects/esprima-next, it should be trivial but who knows ¯\\_(ツ)\_/¯