Lines Matching defs:Promise
96 class Promise;
1824 * Returns true if this value is a Promise.
3361 * An instance of the built-in Promise constructor (ES6 draft).
3364 class V8_EXPORT Promise : public Object {
3379 Local<Promise> GetPromise();
3407 Local<Promise> Chain(Local<Function> handler));
3409 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Chain(
3413 Local<Promise> Catch(Local<Function> handler));
3414 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
3418 Local<Promise> Then(Local<Function> handler));
3419 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
3428 V8_INLINE static Promise* Cast(Value* obj);
3431 Promise();
5066 // --- Promise Reject Callback ---
5074 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event,
5081 V8_INLINE Local<Promise> GetPromise() const { return promise_; }
5091 Local<Promise> promise_;
8476 Promise* Promise::Cast(v8::Value* value) {
8480 return static_cast<Promise*>(value);
8492 Promise::Resolver* Promise::Resolver::Cast(v8::Value* value) {
8496 return static_cast<Promise::Resolver*>(value);