substantial / sinon-stub-promise

Synchronous Promise stubbing for Sinon.JS
MIT License
85 stars 11 forks source link

'match' of undefined in ie11 #23

Open zowers opened 7 years ago

zowers commented 7 years ago

using karma-ie-launcher the test fails with

TypeError: Unable to get property 'match' of undefined or null reference
       at then (webpack:///~/sinon-stub-promise/index.js:24:0 <- tests/test-bundler.js:228163:10)

at

if (error.constructor.name.match(/AssertionError/)) {

because .name is not present in function.prototype

"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; rv:11.0) like Gecko"