google / google/closure-compiler

Object.prototype.propertyIsEnumerable should accept symbol arguments too

Open
#3,473 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.