google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.18k stars 580 forks source link

Traceur overwriting environment Object.keys #1993

Closed guybedford closed 8 years ago

guybedford commented 8 years ago

It seems that when requiring Traceur in Node, the runtime will always overwrite the native Object.keys, which isn't ideal.

arv commented 8 years ago

It is done for symbols and map/set polyfills. We should add a runtime check before doing these overrides.