sinonjs / formatio

The cheesy object formatter
https://sinonjs.github.io/formatio/
Other
36 stars 11 forks source link

hasOwnProperty exception on sinon expected args in IE9 #4

Closed teknynja closed 12 years ago

teknynja commented 12 years ago

I found a couple of issues with buster-format while using sinon.js.

One was it would throw an exception under IE9 if the object to format didn't have a hasOwnProperty function, and the other was excessive output when dumping the document and window objects, causing the browser to stall and hog the cpu for several seconds at a time.

As per discussion with Christian, I have patched both these issues.

cjohansen commented 12 years ago

Thanks man! Looks good, I just had a couple of nitpicks.

cjohansen commented 12 years ago

Ok, looks great, thanks for your effort!