check for existence of Promise before doing check against it

This commit is contained in:
Leo Horie 2016-05-26 11:30:27 -04:00
parent 0ad6749f87
commit ce748f9f71

View file

@ -1338,7 +1338,7 @@
}
m.prop = function (store) {
if ((store != null && isObject(store) || isFunction(store)) || store instanceof window.Promise &&
if ((store != null && isObject(store) || isFunction(store)) || (typeof Promise !== "undefined" && store instanceof Promise) &&
isFunction(store.then)) {
return propify(store)
}