google / google/closure-compiler
Quoted string "keys" for methods in object literals should be supported
Open
ES6
P2
Parser
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
```
function f() {
return ({ "foo bar"() { return 4; } })["foo bar"]() === 4;
}
```
produces:
input0:2: ERROR - Parse error. '[' expected
return ({ "foo bar"() { return 4; } })["foo bar"]() === 4;
^
1 error(s), 0 warning(s)
Contributor guide
Assessment
This issue has not been assessed yet.