forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPauseAction.js
More file actions
101 lines (98 loc) · 1.93 KB
/
PauseAction.js
File metadata and controls
101 lines (98 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// @flow
import type { Command } from "../../reducers/types";
import type { Expression, LoadedObject, Frame, Scope, Why } from "../../types";
import type { PromiseAction } from "../utils/middleware/promise";
export type PauseAction =
| {|
+type: "BREAK_ON_NEXT",
+value: boolean
|}
| {|
+type: "RESUME",
+value: void
|}
| {|
+type: "PAUSED",
+why: Why,
+scopes: Scope,
+frames: Frame[],
+selectedFrameId: string,
+loadedObjects: LoadedObject[]
|}
| {|
+type: "PAUSE_ON_EXCEPTIONS",
+shouldPauseOnExceptions: boolean,
+shouldIgnoreCaughtExceptions: boolean
|}
| PromiseAction<{|
+type: "COMMAND",
+command: Command
|}>
| {|
+type: "SELECT_FRAME",
+frame: Frame
|}
| {|
+type: "SET_POPUP_OBJECT_PROPERTIES",
+objectId: string,
+properties: Object
|}
| {|
+type: "ADD_EXPRESSION",
+id: number,
+input: string,
+value: string,
+expressionError: ?string
|}
| PromiseAction<
{|
+type: "EVALUATE_EXPRESSION",
+input: string
|},
Object
>
| PromiseAction<{|
+type: "EVALUATE_EXPRESSIONS",
+results: Expression[],
+inputs: string[]
|}>
| {|
+type: "UPDATE_EXPRESSION",
+expression: Expression,
+input: string,
+expressionError: ?string
|}
| {|
+type: "DELETE_EXPRESSION",
+input: string
|}
| {|
+type: "CLEAR_EXPRESSION_ERROR"
|}
| PromiseAction<
{|
+type: "MAP_SCOPES",
+frame: Frame
|},
{
scope: Scope,
mappings: {
[string]: string | null
}
}
>
| {|
+type: "MAP_FRAMES",
+frames: Frame[]
|}
| {|
+type: "ADD_EXTRA",
+extra: any
|}
| PromiseAction<
{|
+type: "ADD_SCOPES",
+frame: Frame
|},
Scope
>;