Closed Bug 659283 Opened 10 years ago Closed 6 years ago
.parse("let a") gives kind: "var"
steps to reproduce: 1) obj = Reflect.parse("let a"); 2) (obj.body['kind']=="let") returns false
I think there may not be anything we can do about this for now. Right now, a top-level |let| is treated by SpiderMonkey as a |var|. This may not remain the case in the future, when we work out the semantics of |let| in Harmony, but TC39 hasn't worked it out yet. Dave
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 589199
You need to log in before you can comment on or make changes to this bug.