inexorabletash / polyfill

JavaScript Polyfills, Shims and More
Other
1.36k stars 354 forks source link

Cannot assign to read only property DOM_KEY_LOCATION_STANDARD #131

Closed davisford closed 7 years ago

davisford commented 7 years ago

Uncaught TypeError: Cannot assign to read only property 'DOM_KEY_LOCATION_STANDARD' of function 'function KeyboardEvent() { [native code] }'

Getting this err on Chrome 59.x -- bundling with webpack. Have you seen this before?

inexorabletash commented 7 years ago

Thanks - it was assigning to a read-only property (as it says) which throws in strict mode, presumably being introduced by webpack. I fixed it.

Let me know if this solves the problem for you and I can spin a release.