Using Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,'key'); on a browser which implements KeyboardEvent.prototype.key shows that property is enumerable and configurable. The polyfill don't set those two descriptors breaking code that rely on those.
Using
Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,'key');
on a browser which implementsKeyboardEvent.prototype.key
shows that property is enumerable and configurable. The polyfill don't set those two descriptors breaking code that rely on those.