Home
last modified time | relevance | path

Searched refs:Promise (Results 1 – 21 of 21) sorted by relevance

/external/libmojo/mojo/edk/js/tests/
Dconnection_tests.js46 return Promise.resolve({result: 42});
70 return Promise.resolve();
98 return Promise.reject("Unexpected response");
102 return Promise.resolve();
121 return Promise.resolve({a: a});
125 return Promise.resolve({a: a, b: b});
152 return Promise.resolve();
Dsample_service_tests.js67 return Promise.resolve();
80 return Promise.resolve({result: 1234});
98 return Promise.resolve();
/external/libmojo/mojo/edk/js/
Ddrain_data.cc32 v8::Handle<v8::Promise::Resolver> resolver( in GetPromise()
33 v8::Promise::Resolver::New(isolate_)); in GetPromise()
109 v8::Handle<v8::Promise::Resolver> resolver( in DeliverData()
110 v8::Local<v8::Promise::Resolver>::New(isolate_, resolver_)); in DeliverData()
Ddrain_data.h55 v8::UniquePersistent<v8::Promise::Resolver> resolver_;
/external/clang/test/SemaCXX/
Dcoroutines.cpp29 template<typename Promise> struct coro {};
30 template<typename Promise, typename... Ps>
31 struct std::coroutine_traits<coro<Promise>, Ps...> {
32 using promise_type = Promise;
/external/autotest/client/site_tests/video_WebRtcMediaRecorder/
Dmediarecorder_test_utils.js9 return new Promise(function(resolve, reject) {
20 return new Promise(function(resolve, reject) {
/external/owasp/sanitizer/empiricism/
Dhtml-containment.js255 function Promise() { class
256 if (!(this instanceof Promise)) { return new Promise(); }
267 Promise.prototype.toString = function () { return "Promise"; };
272 if (argument instanceof Promise) {
/external/clang/include/clang/AST/
DStmtCXX.h302 Promise, ///< The promise statement. enumerator
314 CoroutineBodyStmt(Stmt *Body, Stmt *Promise, Stmt *InitSuspend, in CoroutineBodyStmt() argument
319 SubStmts[CoroutineBodyStmt::Promise] = Promise; in CoroutineBodyStmt()
335 Stmt *getPromiseDeclStmt() const { return SubStmts[SubStmt::Promise]; } in getPromiseDeclStmt()
/external/clang/lib/Sema/
DSemaCoroutine.cpp78 auto *Promise = R.getAsSingle<TypeDecl>(); in lookupPromiseType() local
79 if (!Promise) { in lookupPromiseType()
86 QualType PromiseType = S.Context.getTypeDeclType(Promise); in lookupPromiseType()
266 auto *Promise = Coroutine->CoroutinePromise; in buildPromiseCall() local
268 Promise, Promise->getType().getNonReferenceType(), VK_LValue, Loc); in buildPromiseCall()
/external/libmojo/mojo/public/js/
Drouter.js58 return Promise.reject(Error("Connection error"));
62 return new Promise(function(resolve, reject) {
/external/libmojo/mojo/public/tools/bindings/generators/js_templates/
Dinterface_definition.tmpl29 return new Promise(function(resolve, reject) {
110 return Promise.reject(Error("Unhandled message: " + reader.messageName));
/external/llvm/include/llvm/ExecutionEngine/Orc/
DRPCUtils.h404 std::promise<typename Func::OptionalReturn> Promise; in appendCallAsyncWithSeq() local
405 auto Result = Promise.get_future(); in appendCallAsyncWithSeq()
407 createOutstandingResult<Func>(std::move(Promise)); in appendCallAsyncWithSeq()
/external/v8/include/
Dv8.h93 class Promise; variable
3725 class V8_EXPORT Promise : public Object {
3740 Local<Promise> GetPromise();
3768 Local<Promise> Catch(Local<Function> handler));
3769 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
3773 Local<Promise> Then(Local<Function> handler));
3774 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
3783 V8_INLINE static Promise* Cast(Value* obj);
3786 Promise();
5798 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event, in PromiseRejectMessage()
[all …]
/external/v8/src/
Dapi.cc3634 void v8::Promise::CheckCast(Value* that) { in CheckCast()
3640 void v8::Promise::Resolver::CheckCast(Value* that) { in CheckCast()
7112 MaybeLocal<Promise::Resolver> Promise::Resolver::New(Local<Context> context) { in New()
7119 RETURN_ON_FAILED_EXECUTION(Promise::Resolver); in New()
7120 RETURN_ESCAPED(Local<Promise::Resolver>::Cast(Utils::ToLocal(result))); in New()
7124 Local<Promise::Resolver> Promise::Resolver::New(Isolate* isolate) { in New()
7126 Promise::Resolver); in New()
7130 Local<Promise> Promise::Resolver::GetPromise() { in GetPromise()
7132 return Local<Promise>::Cast(Utils::ToLocal(promise)); in GetPromise()
7136 Maybe<bool> Promise::Resolver::Resolve(Local<Context> context, in Resolve()
[all …]
Dapi.h185 static inline Local<Promise> PromiseToLocal(
318 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) in MAKE_TO_LOCAL()
/external/v8/src/inspector/
Dv8-runtime-agent-impl.cc79 v8::Local<v8::Promise> promise = in add()
80 v8::Local<v8::Promise>::Cast(value.ToLocalChecked()); in add()
Dinjected-script-source.js787Promise.resolve().then(/* suppressBlacklist */ inspectedGlobalObject.console.error.bind(inspectedG…
/external/v8/src/js/
Dpromise.js57 var GlobalPromise = function Promise(executor) { class
/external/v8/src/wasm/
Dwasm-js.cc145 v8::Local<v8::Promise::Resolver> resolver; in WebAssemblyCompile()
146 if (!v8::Promise::Resolver::New(context).ToLocal(&resolver)) return; in WebAssemblyCompile()
/external/v8/
DChangeLog11379 Partial rollback of Promise error checking (issue 4633).
12210 Unstage non-standard Promise functions (issue 3237).
12332 Deprecate Promise::Chain from V8 APIs (issue 3237).
12950 Disable non-standard Promise functions in staging (issue 3237).
14845 [es6] Align Promise.resolve with the spec (issues 4161, 4341).
17504 Trigger exception debug events on Promise reject (Chromium issue
17722 Avoid brittle use of .bind in Promise.all (issue 3420).
17933 Add v8::Promise::Then (Chromium issue 371288).
18497 Promise constructor should not be enumerable (Chromium issue 352597).
18604 Split Promise API into Promise/Resolver.
[all …]
/external/libchrome/base/
DBUILD.gn2259 "android/java/src/org/chromium/base/Promise.java",