Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit c880331

Browse files
nchevobbejasonLaster
authored andcommitted
Add a proper type to scopes Block nodes (#5733)
1 parent 6df1c44 commit c880331

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/pause/scopes/getScope.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
44

55
// @flow
6+
import { ObjectInspectorUtils } from "devtools-reps";
67
import { getBindingVariables } from "./getVariables";
78
import { getFramePopVariables, getThisVariable } from "./utils";
89
import { simplifyDisplayName } from "../../pause/frames";
@@ -81,7 +82,8 @@ export function getScope(
8182
return {
8283
name: title,
8384
path: key,
84-
contents: vars
85+
contents: vars,
86+
type: ObjectInspectorUtils.node.NODE_TYPES.BLOCK
8587
};
8688
}
8789
} else if (type === "object" && scope.object) {

0 commit comments

Comments
 (0)