karma-ng-scenario icon indicating copy to clipboard operation
karma-ng-scenario copied to clipboard

Object doesn't support property or method 'hasOwnProperty' in IE11 running IE7 legacy mode

Open kfrajtak opened this issue 9 years ago • 0 comments

Hi, I was getting this error message when running tests in IE11 with IE7 legacy mode. I had to manually change the code in angular-scenario.js file on line 9585 from if (key != 'prototype' && key != 'length' && key != 'name' && obj.hasOwnProperty(key)) { to if (key != 'prototype' && key != 'length' && key != 'name' && Object.prototype.hasOwnProperty.call(obj, key)) { Similar change went to line 9596. Can you please fix this, thanks.

kfrajtak avatar Aug 13 '14 08:08 kfrajtak