megaboich / js-map-parser

Extension for Visual Studio to improve JS support
85 stars 19 forks source link

parsing error when using variable as object key #18

Open JoshCavallaro opened 6 years ago

JoshCavallaro commented 6 years ago

for example: var varkey = "mykey"; var myobj = {[varkey]:"myvalue"} this is parsed as an error (unexpected token "["), but is valid javascript