SteveSanderson / knockout-es5

Knockout.js meets ECMAScript 5 properties
158 stars 39 forks source link

Fix for IE11 debugger #57

Closed ntrrgc closed 8 years ago

ntrrgc commented 8 years ago

IE11 debugger sometimes throws when working with this library as it ends up calling Object.getOwnPropertyNames(Window.prototype).

WindowPrototype methods and properties are private in Internet Explorer and they all throw when called or read, including .toString().

This patch adds a check to avoid that and adds a comment documenting both this issue and my previous debugger fix for Chrome.

archangel-irk commented 8 years ago

Thanks.