(promises)
| 8086 | }; |
| 8087 | |
| 8088 | function props(promises) { |
| 8089 | var ret; |
| 8090 | var castValue = tryConvertToPromise(promises); |
| 8091 | |
| 8092 | if (!isObject(castValue)) { |
| 8093 | return apiRejection("cannot await properties of a non-object\u000a\u000a See http://goo.gl/MqrFmX\u000a"); |
| 8094 | } else if (castValue instanceof Promise) { |
| 8095 | ret = castValue._then( |
| 8096 | Promise.props, undefined, undefined, undefined, undefined); |
| 8097 | } else { |
| 8098 | ret = new PropertiesPromiseArray(castValue).promise(); |
| 8099 | } |
| 8100 | |
| 8101 | if (castValue instanceof Promise) { |
| 8102 | ret._propagateFrom(castValue, 2); |
| 8103 | } |
| 8104 | return ret; |
| 8105 | } |
| 8106 | |
| 8107 | Promise.prototype.props = function () { |
| 8108 | return props(this); |
no test coverage detected