devtools-protocol 0.0.1707781 → 0.0.1709723
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/js_protocol.json +7 -3
- package/package.json +1 -1
- package/pdl/js_protocol.pdl +8 -3
- package/types/protocol.d.ts +8 -3
package/json/js_protocol.json
CHANGED
|
@@ -282,11 +282,15 @@
|
|
|
282
282
|
"$ref": "Location"
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
|
-
"name": "
|
|
286
|
-
"description": "
|
|
285
|
+
"name": "emptyReason",
|
|
286
|
+
"description": "Present if the scope has no variable values to show. Absent means that\nthe scope declares at least one variable with an available value.\nEmpty scopes are retained in the scope chain because\nthey can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or\nmatched against scopes in source maps.",
|
|
287
287
|
"experimental": true,
|
|
288
288
|
"optional": true,
|
|
289
|
-
"type": "
|
|
289
|
+
"type": "string",
|
|
290
|
+
"enum": [
|
|
291
|
+
"no-variables",
|
|
292
|
+
"all-unavailable"
|
|
293
|
+
]
|
|
290
294
|
}
|
|
291
295
|
]
|
|
292
296
|
},
|
package/package.json
CHANGED
package/pdl/js_protocol.pdl
CHANGED
|
@@ -143,12 +143,17 @@ domain Debugger
|
|
|
143
143
|
optional Location startLocation
|
|
144
144
|
# Location in the source code where scope ends
|
|
145
145
|
optional Location endLocation
|
|
146
|
-
#
|
|
147
|
-
#
|
|
146
|
+
# Present if the scope has no variable values to show. Absent means that
|
|
147
|
+
# the scope declares at least one variable with an available value.
|
|
148
148
|
# Empty scopes are retained in the scope chain because
|
|
149
149
|
# they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
|
|
150
150
|
# matched against scopes in source maps.
|
|
151
|
-
experimental optional
|
|
151
|
+
experimental optional enum emptyReason
|
|
152
|
+
# The scope does not declare any variables.
|
|
153
|
+
no-variables
|
|
154
|
+
# The scope declares variables, but none of their values are available
|
|
155
|
+
# (e.g. because they were optimized out or are in their TDZ).
|
|
156
|
+
all-unavailable
|
|
152
157
|
|
|
153
158
|
# Search match for resource.
|
|
154
159
|
type SearchMatch extends object
|
package/types/protocol.d.ts
CHANGED
|
@@ -199,6 +199,11 @@ export namespace Protocol {
|
|
|
199
199
|
WasmExpressionStack = 'wasm-expression-stack',
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
export const enum ScopeEmptyReason {
|
|
203
|
+
NoVariables = 'no-variables',
|
|
204
|
+
AllUnavailable = 'all-unavailable',
|
|
205
|
+
}
|
|
206
|
+
|
|
202
207
|
/**
|
|
203
208
|
* Scope description.
|
|
204
209
|
*/
|
|
@@ -223,14 +228,14 @@ export namespace Protocol {
|
|
|
223
228
|
*/
|
|
224
229
|
endLocation?: Location;
|
|
225
230
|
/**
|
|
226
|
-
*
|
|
227
|
-
*
|
|
231
|
+
* Present if the scope has no variable values to show. Absent means that
|
|
232
|
+
* the scope declares at least one variable with an available value.
|
|
228
233
|
* Empty scopes are retained in the scope chain because
|
|
229
234
|
* they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
|
|
230
235
|
* matched against scopes in source maps.
|
|
231
236
|
* @experimental
|
|
232
237
|
*/
|
|
233
|
-
|
|
238
|
+
emptyReason?: ('no-variables' | 'all-unavailable');
|
|
234
239
|
}
|
|
235
240
|
|
|
236
241
|
/**
|