yhj
6 天以前 ea5c60a0ac52216b22d6096d2d0394c2480f5bc3
1
2
3
4
5
6
7
// can-promise has a crash in some versions of react native that dont have
// standard global objects
// https://github.com/soldair/node-qrcode/issues/157
 
module.exports = function () {
  return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
}