| Index: core/dom/Promise.idl
|
| diff --git a/core/dom/Promise.idl b/core/dom/Promise.idl
|
| index d2fa8643a6278ac43961d2ac3e1f601e8aa02612..f7fb7ba61cf55e18d541d10587feba6185aebeb0 100644
|
| --- a/core/dom/Promise.idl
|
| +++ b/core/dom/Promise.idl
|
| @@ -28,24 +28,19 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -// FIXME: |PromiseValue| should be changed to |Promise|. http://crbug.com/266700
|
| -// IDLs using |Promise| should be written with "typedef any PromiseValue;" and |PromiseValue|.
|
| -
|
| -callback PromiseInit = void (PromiseResolver resolver);
|
| +callback PromiseInit = void (any resolve, any reject);
|
| callback AnyCallback = any (optional any value);
|
| [
|
| GlobalContext=Window&WorkerGlobalScope,
|
| CustomConstructor(PromiseInit init),
|
| - EnabledAtRuntime=promise
|
| + EnabledAtRuntime=Promise
|
| ] interface Promise {
|
| [Custom] Promise then(optional AnyCallback fulfillCallback, optional AnyCallback rejectCallback);
|
| [Custom] Promise catch(optional AnyCallback rejectCallback);
|
|
|
| - [Custom] static Promise fulfill(any value);
|
| [Custom] static Promise resolve(any value);
|
| [Custom] static Promise reject(any value);
|
|
|
| [Custom] static Promise _any(any... values);
|
| [Custom] static Promise every(any... values);
|
| - [Custom] static Promise some(any... values);
|
| };
|
|
|