You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
305 B
13 lines
305 B
"use strict";
|
|
|
|
function noop() {}
|
|
|
|
/**
|
|
* Reflects a promise but does not expose any
|
|
* underlying value or rejection from that promise.
|
|
* @param {Promise} promise [description]
|
|
* @return {Promise} [description]
|
|
*/
|
|
exports.reflector = function(promise) {
|
|
return promise.then(noop, noop);
|
|
};
|
|
|