OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Promise
(Results
26 - 50
of
124
) sorted by null
1
2
3
4
5
/external/v8/test/mjsunit/es6/debug-promises/
throw-caught-late.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
7
// Test debug events when we only listen to uncaught exceptions, the
Promise
13
var p = new
Promise
(function(resolve, reject) {
throw-caught-uncaught.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// there is a catch handler for the exception thrown in a
Promise
.
13
var p = new
Promise
(function(resolve, reject) {
reject-uncaught-all.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// there is a catch handler for the to-be-rejected
Promise
.
9
// We expect an Exception debug event with a
promise
to be triggered.
16
var p = new
Promise
(function(resolve, reject) {
24
return
Promise
.reject(new Error("uncaught reject"));
33
assertTrue(event_data.
promise
() instanceof
Promise
);
34
assertSame(q, event_data.
promise
());
reject-uncaught-late.js
8
// there is a catch handler for the to-be-rejected
Promise
.
9
// We expect an Exception debug event with a
promise
to be triggered.
18
var p = new
Promise
(function(resolve, reject) {
23
var q = new
Promise
(function(resolve, reject) {
40
assertTrue(event_data.
promise
() instanceof
Promise
);
41
assertSame(p, event_data.
promise
());
reject-uncaught-uncaught.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// there is no catch handler for the to-be-rejected
Promise
.
9
// We expect an Exception debug event with a
promise
to be triggered.
16
var p = new
Promise
(function(resolve, reject) {
24
return
Promise
.reject(Error("uncaught reject")); // event
33
assertTrue(event_data.
promise
() instanceof
Promise
);
34
assertSame(q, event_data.
promise
());
reject-with-invalid-reject.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
7
// Test debug events when a
Promise
is rejected, which is caught by a custom
8
//
promise
, which has a number for reject closure. We expect an Exception debug
16
var p = new
Promise
(function(resolve, reject) {
28
MyPromise.prototype = new
Promise
(function() {});
34
return
Promise
.reject(new Error("caught"));
reject-with-throw-in-reject.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
7
// Test debug events when a
Promise
is rejected, which is caught by a
8
// custom
promise
, which throws a new exception in its reject handler.
10
// 1) when
promise
q is rejected.
18
var p = new
Promise
(function(resolve, reject) {
33
MyPromise.prototype = new
Promise
(function() {});
39
return
Promise
.reject(new Error("caught"));
reject-with-undefined-reject.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
7
// Test debug events when a
Promise
is rejected, which is caught by a custom
8
//
promise
, which has undefined for reject closure. We expect an Exception
16
var p = new
Promise
(function(resolve, reject) {
28
MyPromise.prototype = new
Promise
(function() {});
34
return
Promise
.reject(new Error("caught"));
throw-with-throw-in-reject.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
7
// Test debug events when an exception is thrown inside a
Promise
, which is
8
// caught by a custom
promise
, which throws a new exception in its reject
10
// 1) when the exception is thrown in the
promise
q.
18
var p = new
Promise
(function(resolve, reject) {
33
MyPromise.prototype = new
Promise
(function() {});
34
MyPromise.__proto__ =
Promise
;
57
assertSame(q, event_data.
promise
());
try-throw-reject-in-constructor.js
8
// an exception is thrown in the
Promise
constructor, but caught in an
9
// inner try-catch. The
Promise
is rejected afterwards.
10
// We expect an Exception debug event with a
promise
to be triggered.
22
assertTrue(event_data.
promise
() instanceof
Promise
);
36
var p = new
Promise
(function(resolve, reject) {
async-task-event.js
40
assertEquals("
Promise
.resolve", event_data.name());
51
var p = new
Promise
(function(resolve, reject) {
reject-after-resolve.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// the
Promise
is rejected in a chained closure after it has been resolved.
15
var p = new
Promise
(function(resolve, reject) {
throw-caught-all.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// there is a catch handler for the exception thrown in a
Promise
.
16
var p = new
Promise
(function(resolve, reject) {
38
assertSame(q, event_data.
promise
());
reject-caught-all.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// there is a catch handler for the to-be-rejected
Promise
.
16
var p = new
Promise
(function(resolve, reject) {
24
return
Promise
.reject(new Error("reject"));
39
assertSame(q, event_data.
promise
());
throw-uncaught-all.js
5
// Flags: --expose-debug-as debug --allow-natives-syntax --
promise
-extra
8
// there is no catch handler for the exception thrown in a
Promise
.
9
// We expect an Exception debug event with a
promise
to be triggered.
16
var p = new
Promise
(function(resolve, reject) {
34
assertTrue(event_data.
promise
() instanceof
Promise
);
35
assertSame(q, event_data.
promise
());
/external/v8/test/mjsunit/regress/
regress-crbug-568477-2.js
10
"new
Promise
(f).catch(call_f_with_deeper_stack);",
38
new
Promise
(f).catch(call_f_with_deeper_stack);
regress-5004.js
13
class P extends
Promise
{
/external/v8/test/cctest/
test-extra.js
37
const
Promise
= global.
Promise
;
38
const Promise_resolve = v8.simpleBind(
Promise
.resolve,
Promise
);
/external/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-catch.js
26
description('Test
Promise
.prototype.catch.');
33
var firstPromise = new
Promise
(function(_, newReject) {
57
shouldBeTrue('firstPromise instanceof
Promise
');
58
shouldBeTrue('secondPromise instanceof
Promise
');
Promise-then.js
26
description('Test
Promise
.prototype.then');
33
var firstPromise = new
Promise
(function(newResolve) {
47
shouldBeTrue('firstPromise instanceof
Promise
');
48
shouldBeTrue('secondPromise instanceof
Promise
');
/external/autotest/client/site_tests/video_WebRtcMediaRecorder/
mediarecorder_test_utils.js
9
return new
Promise
(function(resolve, reject) {
20
return new
Promise
(function(resolve, reject) {
/external/clang/test/SemaCXX/
coroutines.cpp
29
template<typename
Promise
> struct coro {};
30
template<typename
Promise
, typename... Ps>
31
struct std::coroutine_traits<coro<
Promise
>, Ps...> {
32
using promise_type =
Promise
;
57
struct
promise
; // expected-note 2{{forward declaration}}
58
template<typename ...T> struct std::coroutine_traits<void, T...> { using promise_type =
promise
; };
63
// expected-error@-2 {{incomplete definition of type '
promise
'}}
71
struct
promise
{
struct
/external/v8/test/mjsunit/harmony/
debug-async-function-async-task-event.js
43
assertTrue("
Promise
.resolve" == event_data.name() ||
55
var p = new
Promise
(function(resolve, reject) {
/external/v8/src/js/
promise-extra.js
11
var GlobalPromise = global.
Promise
;
Completed in 758 milliseconds
1
2
3
4
5