dorellang / hunter

Hunter: a JavaScript reengineering platform.
MIT License
34 stars 3 forks source link

Be more lenient with reserved keyword usage on identifiers #22

Open dorellang opened 5 years ago

dorellang commented 5 years ago

I've found this file on Habitica, which uses an special webpack function called import, which is a reserved word on ES2015. This makes Hunter throw an error when loading the file. I know this is hard, but I think maybe we should support a more error-tolerant parsing. Anyway I think it's not bad to have this edge-case registered here.