Home | History | Annotate | Download | only in src

Lines Matching defs:Promise

3796 void v8::Promise::CheckCast(Value* that) {
3797 Utils::ApiCheck(that->IsPromise(), "v8::Promise::Cast",
3798 "Could not convert to promise");
3802 void v8::Promise::Resolver::CheckCast(Value* that) {
3803 Utils::ApiCheck(that->IsPromise(), "v8::Promise::Resolver::Cast",
3804 "Could not convert to promise resolver");
7337 MaybeLocal<Promise::Resolver> Promise::Resolver::New(Local<Context> context) {
7344 RETURN_ON_FAILED_EXECUTION(Promise::Resolver);
7345 RETURN_ESCAPED(Local<Promise::Resolver>::Cast(Utils::ToLocal(result)));
7349 Local<Promise::Resolver> Promise::Resolver::New(Isolate* isolate) {
7351 Promise::Resolver);
7355 Local<Promise> Promise::Resolver::GetPromise() {
7356 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7357 return Local<Promise>::Cast(Utils::ToLocal(promise));
7361 Maybe<bool> Promise::Resolver::Resolve(Local<Context> context,
7376 void Promise::Resolver::Resolve(Local<Value> value) {
7382 Maybe<bool> Promise::Resolver::Reject(Local<Context> context,
7400 void Promise::Resolver::Reject(Local<Value> value) {
7406 MaybeLocal<Promise> Promise::Catch(Local<Context> context,
7408 PREPARE_FOR_EXECUTION(context, Promise, Catch, Promise);
7415 RETURN_ON_FAILED_EXECUTION(Promise);
7416 RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result)));
7420 Local<Promise> Promise::Catch(Local<Function> handler) {
7422 RETURN_TO_LOCAL_UNCHECKED(Catch(context, handler), Promise);
7426 MaybeLocal<Promise> Promise::Then(Local<Context> context,
7428 PREPARE_FOR_EXECUTION(context, Promise, Then, Promise);
7435 RETURN_ON_FAILED_EXECUTION(Promise);
7436 RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result)));
7440 Local<Promise> Promise::Then(Local<Function> handler) {
7442 RETURN_TO_LOCAL_UNCHECKED(Then(context, handler), Promise);
7446 bool Promise::HasHandler() {
7447 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7448 i::Isolate* isolate = promise->GetIsolate();
7449 LOG_API(isolate, Promise, HasRejectHandler);
7451 if (promise->IsJSPromise()) {
7452 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
7458 Local<Value> Promise::Result() {
7459 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7460 i::Isolate* isolate = promise->GetIsolate();
7461 LOG_API(isolate, Promise, Result);
7462 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
7464 "Promise is still pending");
7469 Promise::PromiseState Promise::State() {
7470 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7471 i::Isolate* isolate = promise->GetIsolate();
7472 LOG_API(isolate, Promise, Status);
7473 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);