Update Tern and Acorn to the latest.

This fixes #6018 and possibly others.
Merge pull request #6064 from adobe/dangoor/6018-codehinthang

Update Tern and Acorn to the latest.