hat-tip to esprima and falafel.