Lines Matching defs:promise
1347 // Setup callbacks, and then chain them to the result promise.
1412 // If the exception has been caught by the promise pipeline, we rethrow
1540 void PerIsolateData::RemoveUnhandledPromise(Local<Promise> promise) {
1543 DCHECK_EQ(promise->GetIsolate(), isolate_);
1547 if (unhandled_promise == promise) {
1553 void PerIsolateData::AddUnhandledPromise(Local<Promise> promise,
1557 DCHECK_EQ(promise->GetIsolate(), isolate_);
1558 unhandled_promises_.emplace_back(v8::Global<v8::Promise>(isolate_, promise),
2234 // Setting promise hoooks dynamically has unexpected timing side-effects
2235 // with certain promise optimizations. We might not get all callbacks for
2239 "d8.promise.setHooks is disabled with "
2256 "d8.promise.setHooks is disabled due to missing build flag "
3173 d8_template->Set(isolate, "promise", promise_template);
3231 v8::Local<v8::Promise> promise = data.GetPromise();
3232 v8::Isolate* isolate = promise->GetIsolate();
3236 isolate_data->RemoveUnhandledPromise(promise);
3259 isolate_data->AddUnhandledPromise(promise, message, exception);