google / closure-compiler

A JavaScript checker and optimizer.
https://developers.google.com/closure/compiler/
Apache License 2.0
7.37k stars 1.14k forks source link

Object.prototype.propertyIsEnumerable should accept symbol arguments too #3473

Open theseanl opened 4 years ago

theseanl commented 4 years ago

Object.prototype.propertyIsEnumerable defined in es3.js only accepts string type parameter, but it should accept symbols too.

This prevents compiling a line of tslib with Closure Compiler.

blickly commented 4 years ago

Makes sense. Thanks for the report!

Created internal issue http://b/141643479