/external/chromium_org/v8/test/webkit/fast/js/ |
Promise-static-cast.js | 26 description('Test Promise.resolve as cast'); 32 var value = new Promise(function (r) { resolve = r;} ); 33 var promise = Promise.resolve(value); variable 35 // If [[IsPromise]] is true, Promise.resolve simply returns argument. 36 shouldBe('promise', 'value'); 38 promise.then(function(res) { 42 return Promise.resolve(42).then(function (res) {
|
Promise-static-resolve.js | 26 description('Test Promise.resolve'); 31 var promise = Promise.resolve(new Promise(function (r) { resolve = r;} )); variable 33 promise.then(function(localResult) {
|
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
ScriptPromiseResolver.cpp | 48 m_resolver = ScriptValue(scriptState, v8::Promise::Resolver::New(isolate)); 59 ScriptPromise ScriptPromiseResolver::promise() function in class:WebCore::ScriptPromiseResolver 64 v8::Local<v8::Promise::Resolver> v8Resolver = m_resolver.v8Value().As<v8::Promise::Resolver>(); 80 m_resolver.v8Value().As<v8::Promise::Resolver>()->Resolve(value); 89 m_resolver.v8Value().As<v8::Promise::Resolver>()->Reject(value);
|
ScriptPromise.cpp | 62 V8ThrowException::throwTypeError("the given value is not a Promise", scriptState->isolate()); 73 v8::Local<v8::Object> promise = m_promise.v8Value().As<v8::Object>(); 77 ASSERT(promise->IsPromise()); 78 // Return this Promise if no handlers are given. 79 // In fact it is not the exact bahavior of Promise.prototype.then 81 v8::Local<v8::Promise> resultPromise = promise.As<v8::Promise>(); 85 // v8::Promise::Then may return an empty value, for example when 109 ScriptPromise promise = resolver->promise() local 124 ScriptPromise promise = resolver->promise(); local [all...] |
ScriptPromiseResolverTest.cpp | 87 ScriptPromise promise = m_resolver->promise(); local 88 ASSERT_FALSE(promise.isEmpty()); 90 promise.then(Function::create(isolate(), &onFulfilled), Function::create(isolate(), &onRejected)); 103 ScriptPromise promise = m_resolver->promise(); local 104 ASSERT_FALSE(promise.isEmpty()); 106 promise.then(Function::create(isolate(), &onFulfilled), Function::create(isolate(), &onRejected)); 112 EXPECT_TRUE(m_resolver->promise().isEmpty()); 121 ScriptPromise promise = m_resolver->promise() local 139 ScriptPromise promise = m_resolver->promise(); local 163 ScriptPromise promise = m_resolver->promise(); local [all...] |
ScriptPromiseTest.cpp | 96 ScriptPromise promise(scriptState(), v8::Undefined(isolate())); 98 ASSERT_TRUE(promise.isEmpty()); 104 ScriptPromise promise = resolver->promise(); local 106 promise.then(Function::create(isolate(), &onFulfilled), Function::create(isolate(), &onRejected)); 108 ASSERT_FALSE(promise.isEmpty()); 127 ScriptPromise promise = resolver->promise(); local 130 promise.then(Function::create(isolate(), &onFulfilled), Function::create(isolate(), &onRejected)); 132 ASSERT_FALSE(promise.isEmpty()) 145 ScriptPromise promise = resolver->promise(); local 168 ScriptPromise promise = resolver->promise(); local 185 ScriptPromise promise = ScriptPromiseResolver::create(scriptState())->promise(); local 227 ScriptPromise promise = ScriptPromise::reject(scriptState(), ScriptValue(value)); local 245 ScriptPromise promise = ScriptPromise::rejectWithDOMException(scriptState(), DOMException::create(SyntaxError, "some syntax error")); local [all...] |
ScriptPromiseResolverWithContext.h | 44 // - promise() is called at least once and 68 ScriptPromise promise() function in class:WebCore::ScriptPromiseResolverWithContext 73 return m_resolver ? m_resolver->promise() : ScriptPromise(); 84 // promise is pending and the associated ExecutionContext isn't stopped. 138 // True if promise() is called.
|
/external/chromium_org/third_party/WebKit/Source/modules/push_messaging/ |
PushManager.cpp | 35 ScriptPromise promise = resolver->promise(); local 39 return promise;
|
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/ |
InstallEvent.cpp | 63 // For now this just returns a promise which is already rejected. 65 ScriptPromise promise = resolver->promise(); local 67 return promise;
|
ServiceWorkerContainer.cpp | 83 ScriptPromise promise = resolver->promise(); local 87 return promise; 96 return promise; 103 return promise; 107 return promise; 127 ScriptPromise promise = resolver->promise(); local 131 return promise; 139 return promise; 150 ScriptPromise promise = resolver->promise(); local [all...] |
FetchManager.cpp | 160 ScriptPromise promise = resolver->promise(); local 164 return promise;
|
/external/chromium_org/third_party/WebKit/Source/modules/webmidi/ |
NavigatorWebMIDI.cpp | 78 ScriptPromise promise = resolver->promise(); local 81 return promise;
|
MIDIAccessInitializer.cpp | 39 ScriptPromise promise = this->promise(); local 44 return promise; 54 return promise;
|
/external/libcxx/src/ |
future.cpp | 44 return string("The associated promise has been destructed prior " 48 "the promise or packaged_task."); 50 return string("The state of the promise has already been set."); 216 promise<void>::promise() function in class:promise 221 promise<void>::~promise() 234 promise<void>::get_future() 244 promise<void>::set_value() 254 promise<void>::set_exception(exception_ptr __p [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ |
future.cpp | 46 return string("The associated promise has been destructed prior " 50 "the promise or packaged_task."); 52 return string("The state of the promise has already been set."); 218 promise<void>::promise() function in class:promise 223 promise<void>::~promise() 236 promise<void>::get_future() 246 promise<void>::set_value() 256 promise<void>::set_exception(exception_ptr __p [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/imagebitmap/ |
ImageBitmapFactories.h | 92 ScriptPromise promise() { return m_resolver->promise(); } function in class:WebCore::FINAL::FINAL
|
ImageBitmapFactories.cpp | 72 ScriptPromise promise = resolver->promise(); local 78 return promise; 189 ScriptPromise promise = loader->promise(); local 192 return promise; 202 ScriptPromise promise = loader->promise(); local 205 return promise;
|
/external/chromium_org/third_party/WebKit/Source/web/ |
StorageQuotaClientImpl.cpp | 82 ScriptPromise promise = resolver->promise(); local 94 return promise;
|
/external/clang/test/PCH/ |
cxx-friends.h | 12 template<typename> class promise { class in namespace:PR12585
|
/external/chromium_org/third_party/WebKit/Source/modules/quota/ |
StorageQuota.cpp | 90 ScriptPromise promise = resolver->promise(); local 95 return promise; 101 return promise; 109 ScriptPromise promise = resolver->promise(); local 111 return promise;
|
/external/chromium_org/third_party/WebKit/Source/modules/battery/ |
BatteryManager.cpp | 37 return m_resolver->promise(); 40 ScriptPromise promise = m_resolver->promise(); local 43 // FIXME: Consider returning the same promise in this case. See crbug.com/385025. 51 return promise;
|
/external/chromium_org/third_party/WebKit/Source/modules/screen_orientation/ |
ScreenOrientation.cpp | 131 ScriptPromise promise = resolver->promise(); local 139 return promise; 145 return promise; 149 return promise;
|
/external/chromium_org/content/renderer/media/crypto/ |
proxy_media_keys.cc | 56 scoped_ptr<media::NewSessionCdmPromise> promise) { 67 promise->reject( 75 SavePromise(session_id, promise.PassAs<media::CdmPromise>()); 85 scoped_ptr<media::NewSessionCdmPromise> promise) { 89 promise->reject(NOT_SUPPORTED_ERROR, 0, "LoadSession() is not supported."); 96 scoped_ptr<media::SimpleCdmPromise> promise) { 99 promise->reject(INVALID_ACCESS_ERROR, 0, "Session does not exist."); 103 SavePromise(session_id, promise.PassAs<media::CdmPromise>()); 112 scoped_ptr<media::SimpleCdmPromise> promise) { 115 promise->reject(INVALID_ACCESS_ERROR, 0, "Session does not exist.") 126 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 142 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 157 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 187 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/crypto/ |
CryptoResultImpl.cpp | 191 ScriptPromise CryptoResultImpl::promise() function in class:WebCore::CryptoResultImpl 193 return m_resolver ? m_resolver->promise() : ScriptPromise();
|
SubtleCrypto.cpp | 92 ScriptPromise promise = result->promise(); local 95 return promise; 100 return promise; 102 return promise; 104 return promise; 108 return promise; 111 return promise; 137 return promise; 224 ScriptPromise promise = result->promise() local 244 ScriptPromise promise = result->promise(); local 276 ScriptPromise promise = result->promise(); local 309 ScriptPromise promise = result->promise(); local 333 ScriptPromise promise = result->promise(); local 367 ScriptPromise promise = result->promise(); local [all...] |