Home
last modified time | relevance | path

Searched refs:event_data (Results 1 – 25 of 154) sorted by relevance

1234567

/external/v8/test/mjsunit/es6/debug-promises/
Devents.js26 function listener(event, exec_state, event_data, data) { argument
30 assertTrue(event_data.promise().isPromise());
31 if (event_data.status() === 0) {
33 assertEquals("pending", event_data.promise().status());
34 result.push({ promise: event_data.promise().value(), status: 0 });
36 } else if (event_data.status() !== undefined) {
38 updatePromise(event_data.promise().value(),
40 event_data.status(),
41 event_data.value().value());
44 assertTrue(event_data.parentPromise().isPromise());
[all …]
Dasync-task-event.js34 function listener(event, exec_state, event_data, data) { argument
38 base_id = event_data.id();
39 var id = event_data.id() - base_id + 1;
40 assertEquals("Promise.resolve", event_data.name());
41 assertLog(event_data.type() + " #" + id);
Dreject-uncaught-all.js27 function listener(event, exec_state, event_data, data) { argument
32 assertEquals("uncaught reject", event_data.exception().message);
33 assertTrue(event_data.promise() instanceof Promise);
34 assertSame(q, event_data.promise());
35 assertTrue(event_data.uncaught());
Dthrow-uncaught-all.js27 function listener(event, exec_state, event_data, data) { argument
33 assertEquals("uncaught", event_data.exception().message);
34 assertTrue(event_data.promise() instanceof Promise);
35 assertSame(q, event_data.promise());
36 assertTrue(event_data.uncaught());
Dreject-uncaught-uncaught.js27 function listener(event, exec_state, event_data, data) { argument
32 assertEquals("uncaught reject", event_data.exception().message);
33 assertTrue(event_data.promise() instanceof Promise);
34 assertSame(q, event_data.promise());
35 assertTrue(event_data.uncaught());
Dthrow-uncaught-uncaught.js27 function listener(event, exec_state, event_data, data) { argument
33 assertEquals("uncaught", event_data.exception().message);
34 assertTrue(event_data.promise() instanceof Promise);
35 assertSame(q, event_data.promise());
36 assertTrue(event_data.uncaught());
Dreject-uncaught-late.js34 function listener(event, exec_state, event_data, data) { argument
39 assertEquals("uncaught reject p", event_data.exception().message);
40 assertTrue(event_data.promise() instanceof Promise);
41 assertSame(p, event_data.promise());
42 assertTrue(event_data.uncaught());
Dthrow-caught-by-default-reject-handler.js39 function listener(event, exec_state, event_data, data) { argument
44 assertTrue(event_data.uncaught());
45 assertTrue(event_data.promise() instanceof Promise);
50 assertSame(p1, event_data.promise());
54 assertSame(p2, event_data.promise());
Dreject-caught-by-default-reject-handler.js39 function listener(event, exec_state, event_data, data) { argument
44 assertTrue(event_data.uncaught());
45 assertTrue(event_data.promise() instanceof Promise);
49 assertSame(p1, event_data.promise());
53 assertSame(p2, event_data.promise());
Dreject-in-constructor.js16 function listener(event, exec_state, event_data, data) { argument
20 assertEquals("uncaught", event_data.exception().message);
21 assertTrue(event_data.promise() instanceof Promise);
22 assertTrue(event_data.uncaught());
Dthrow-in-constructor.js16 function listener(event, exec_state, event_data, data) { argument
20 assertEquals("uncaught", event_data.exception().message);
21 assertTrue(event_data.promise() instanceof Promise);
22 assertTrue(event_data.uncaught());
Dtry-throw-reject-in-constructor.js17 function listener(event, exec_state, event_data, data) { argument
21 assertEquals("uncaught", event_data.exception().message);
22 assertTrue(event_data.promise() instanceof Promise);
23 assertTrue(event_data.uncaught());
Dtry-reject-in-constructor.js16 function listener(event, exec_state, event_data, data) { argument
20 assertEquals("uncaught", event_data.exception().message);
21 assertTrue(event_data.promise() instanceof Promise);
22 assertTrue(event_data.uncaught());
Dthrow-caught-all.js32 function listener(event, exec_state, event_data, data) { argument
37 assertEquals("caught", event_data.exception().message);
38 assertSame(q, event_data.promise());
39 assertFalse(event_data.uncaught());
Dreject-caught-all.js33 function listener(event, exec_state, event_data, data) { argument
38 assertEquals("reject", event_data.exception().message);
39 assertSame(q, event_data.promise());
40 assertFalse(event_data.uncaught());
Dthrow-with-undefined-reject.js39 function listener(event, exec_state, event_data, data) { argument
47 assertEquals("caught", event_data.exception().message);
52 event_data.exception().message);
56 assertSame(q, event_data.promise());
Dthrow-with-throw-in-reject.js42 function listener(event, exec_state, event_data, data) { argument
50 assertEquals("caught", event_data.exception().message);
52 assertEquals("reject", event_data.exception().message);
56 assertSame(q, event_data.promise());
/external/v8/test/mjsunit/
Ddebug-set-script-source.js36 function listener(event, exec_state, event_data, data) { argument
38 event_data.script().setSource(event_data.script().source() +
42 event_data.script().setSource("a=1 //# sourceURL=wrong_location");
46 script_names.push(event_data.script().name());
Ddebug-stepnext-do-while.js35 function listener(event, exec_state, event_data, data) { argument
40 event_data.sourceLineText());
41 assertEquals('runDoWhile', event_data.func().name());
44 event_data.sourceLineText());
45 assertEquals('runDoWhile', event_data.func().name());
Ddebug-compile-event-newfunction.js34 function listener(event, exec_state, event_data, data) { argument
38 event_data.script().compilationType(),
40 var evalFromScript = event_data.script().evalFromScript();
47 var evalFromLocation = event_data.script().evalFromLocation();
52 var json = event_data.toJSONProtocol();
Ddebug-compile-event.js49 function listener(event, exec_state, event_data, data) { argument
59 switch (event_data.script().compilationType()) {
76 assertTrue(current_source.indexOf(event_data.script().source()) >= 0);
80 assertEquals(current_source, event_data.script().source());
83 var json = event_data.toJSONProtocol();
91 event_data.script().name());
Ddebug-event-listener.js34 function listener(event, exec_state, event_data, data) { argument
40 lastDebugEvent.event_data = event_data;
59 assertFalse(lastDebugEvent.event_data.uncaught());
Ddebug-stepin-builtin-callback.js36 function array_listener(event, exec_state, event_data, data) { argument
45 print(event_data.sourceLineText());
46 assertTrue(event_data.sourceLineText().indexOf("Expected to step") > 0);
123 function second_level_listener(event, exec_state, event_data, data) { argument
132 assertTrue(event_data.sourceLineText().indexOf("Expected to step") > 0);
/external/v8/test/mjsunit/es7/
Dobject-observe-debug-event.js26 function listener(event, exec_state, event_data, data) { argument
30 base_id = event_data.id();
31 var id = event_data.id() - base_id + 1;
32 assertEquals("Object.observe", event_data.name());
33 assertLog(event_data.type() + " #" + id);
/external/v8/test/mjsunit/es6/
Ddebug-stepin-collections-foreach.js11 function listener(event, exec_state, event_data, data) { argument
20 print(event_data.sourceLineText());
21 assertTrue(event_data.sourceLineText().indexOf("Expected to step") > 0);
73 function second_level_listener(event, exec_state, event_data, data) { argument
82 assertTrue(event_data.sourceLineText().indexOf("Expected to step") > 0);

1234567