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.
@@ -282,11 +282,15 @@
282
282
  "$ref": "Location"
283
283
  },
284
284
  {
285
- "name": "empty",
286
- "description": "True if the scope does not declare any variables.\nOnly present if true.\nEmpty scopes are retained in the scope chain because\nthey can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or\nmatched against scopes in source maps.",
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": "boolean"
289
+ "type": "string",
290
+ "enum": [
291
+ "no-variables",
292
+ "all-unavailable"
293
+ ]
290
294
  }
291
295
  ]
292
296
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1707781",
3
+ "version": "0.0.1709723",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -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
- # True if the scope does not declare any variables.
147
- # Only present if true.
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 boolean empty
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
@@ -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
- * True if the scope does not declare any variables.
227
- * Only present if true.
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
- empty?: boolean;
238
+ emptyReason?: ('no-variables' | 'all-unavailable');
234
239
  }
235
240
 
236
241
  /**