You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This issue tracker is only for bug reports or feature requests, if this is neither, please choose appropriate channel from http://bluebirdjs.com/docs/support.html)
Please answer the questions the best you can:
What version of bluebird is the issue happening on? latest
What platform and version? (For example Node.js 0.12 or Google Chrome 32) Chrome 50
Did this issue happen with earlier version of bluebird? yes
(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)
There is an edge case with hasOwnProperty throwing a DOMException.
(This issue tracker is only for bug reports or feature requests, if this is neither, please choose appropriate channel from http://bluebirdjs.com/docs/support.html)
Please answer the questions the best you can:
What version of bluebird is the issue happening on? latest
What platform and version? (For example Node.js 0.12 or Google Chrome 32) Chrome 50
Did this issue happen with earlier version of bluebird? yes
(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)
There is an edge case with
hasOwnProperty
throwing a DOMException.This function https://github.com/petkaantonov/bluebird/blob/master/src/thenables.js#L51 needs to be inside a
try / catch
like this:We have situations where objects like
Storage
are getting passed here and will throw.A simple
try / catch
with the catch handler returningfalse
would do the trick!The text was updated successfully, but these errors were encountered: