google / google/closure-compiler
Object.prototype.propertyIsEnumerable should accept symbol arguments too
Open
internal-issue-created
triage-done
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
`Object.prototype.propertyIsEnumerable` defined in [`es3.js`](https://github.com/google/closure-compiler/blob/5c3dca6b6f0cd28b233b8286b07a863097a8fa7b/externs/es3.js#L512) only accepts `string` type parameter, but it should accept `symbol`s too.
This prevents compiling [a line of tslib](https://github.com/microsoft/tslib/blob/ec58992a93e2453a9609024c4dbe3e64e0a78409/tslib.es6.js#L47) with Closure Compiler.
Contributor guide
Assessment
This issue has not been assessed yet.