| Index: ui/webui/resources/js/promise_resolver.js
|
| diff --git a/ui/webui/resources/js/promise_resolver.js b/ui/webui/resources/js/promise_resolver.js
|
| index 0759c955584cc18ca2808ea9ad6bd4c64f2fa49c..ba84ada0df798fe96e4cb7f81f44f854d6d478a3 100644
|
| --- a/ui/webui/resources/js/promise_resolver.js
|
| +++ b/ui/webui/resources/js/promise_resolver.js
|
| @@ -21,15 +21,29 @@
|
| * @template T
|
| */
|
| function PromiseResolver() {
|
| - /** @type {function(T): void} */
|
| - this.resolve;
|
| + /** @private {function(T): void} */
|
| + this.resolve_;
|
|
|
| - /** @type {function(*=): void} */
|
| - this.reject;
|
| + /** @private {function(*=): void} */
|
| + this.reject_;
|
|
|
| - /** @type {!Promise<T>} */
|
| - this.promise = new Promise(function(resolve, reject) {
|
| - this.resolve = resolve;
|
| - this.reject = reject;
|
| + /** @private {!Promise<T>} */
|
| + this.promise_ = new Promise(function(resolve, reject) {
|
| + this.resolve_ = resolve;
|
| + this.reject_ = reject;
|
| }.bind(this));
|
| }
|
| +
|
| +PromiseResolver.prototype = {
|
| + /** @return {!Promise<T>} */
|
| + get promise() { return this.promise_; },
|
| + set promise(p) { assertNotReached(); },
|
| +
|
| + /** @return {function(T): void} */
|
| + get resolve() { return this.resolve_; },
|
| + set resolve(r) { assertNotReached(); },
|
| +
|
| + /** @return {function(*=): void} */
|
| + get reject() { return this.reject_; },
|
| + set reject(s) { assertNotReached(); },
|
| +};
|
|
|