OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Closure Compiler Authors | 2 * Copyright 2014 The Closure Compiler Authors |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 /** | 31 /** |
32 * @param {string} description | 32 * @param {string} description |
33 * @return {symbol} | 33 * @return {symbol} |
34 */ | 34 */ |
35 function Symbol(description) {} | 35 function Symbol(description) {} |
36 | 36 |
37 /** @const {symbol} */ | 37 /** @const {symbol} */ |
38 Symbol.iterator; | 38 Symbol.iterator; |
39 | 39 |
| 40 /** |
| 41 * @param {string} name |
| 42 * @return {symbol} |
| 43 */ |
| 44 Symbol.for; |
| 45 |
40 | 46 |
41 /** | 47 /** |
42 * @interface | 48 * @interface |
43 * @template VALUE | 49 * @template VALUE |
44 */ | 50 */ |
45 function Iterable() {} | 51 function Iterable() {} |
46 | 52 |
47 // TODO(johnlenz): remove this when the compiler understands "symbol" natively | 53 // TODO(johnlenz): remove this when the compiler understands "symbol" natively |
48 /** | 54 /** |
49 * @return {Iterator.<VALUE>} | 55 * @return {Iterator.<VALUE>} |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 */ | 857 */ |
852 Promise.prototype.then = function(opt_onFulfilled, opt_onRejected) {}; | 858 Promise.prototype.then = function(opt_onFulfilled, opt_onRejected) {}; |
853 | 859 |
854 | 860 |
855 /** | 861 /** |
856 * @param {function(*): RESULT} onRejected | 862 * @param {function(*): RESULT} onRejected |
857 * @return {!Promise.<RESULT>} | 863 * @return {!Promise.<RESULT>} |
858 * @template RESULT | 864 * @template RESULT |
859 */ | 865 */ |
860 Promise.prototype.catch = function(onRejected) {}; | 866 Promise.prototype.catch = function(onRejected) {}; |
OLD | NEW |