SteveSanderson / knockout-es5

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

Breaks F12 Tools in IE11 #58

Closed Manuel-S closed 8 years ago

Manuel-S commented 8 years ago

Hi,

when having imported knockout-es5 globally, the F12 debugger breaks when you type variables in the console. It throws an exception of

Invalid caller object

on line 562:

if ('toString' in coercedObj && coercedObj.toString() === '[object Window]') {

the variable coercedObj contains a WindowPrototype and throws on the toString() call.

archangel-irk commented 8 years ago

Hi, this PR is merged https://github.com/SteveSanderson/knockout-es5/pull/57. Please try it.

Manuel-S commented 8 years ago

It works. Thanks!