Open ota-meshi opened 1 year ago
I believe #25 fixes the escaped static keyword.
we wont handle this in acorn-typescript. bo this may be a parameter in typescript
Yeah, TypeScript allows we to use this
for parameters, but it is still an error to use this
for variable declarations.
Yeah, That's an error in typescript. Parse this
in parameter will call parseBindingAtom, and then call the parseIdent to parse it. Parse this
in val decl will alse call the parseBindingAtom. So its so hard for us to distinguish which is in parameter or val decl
I agree that it is hard. At least I didn't think I could fix it, so I left it as an issue.
It seems that an error should be raised in the following cases, but the error is not raised. I found this from test262 results.