We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffff25b commit 769adf5Copy full SHA for 769adf5
packages/repl/src/lib/Output/AstNode.svelte
@@ -34,7 +34,9 @@
34
$effect(() => {
35
if (active && typeof value === 'object' && value !== null) {
36
workspace.onselect((from, to) => {
37
- const nodes = value.type === 'Fragment' ? value.nodes : is_array ? value : [value];
+ // legacy fragments have `children`
38
+ const nodes =
39
+ value.type === 'Fragment' ? value.nodes ?? value.children : is_array ? value : [value];
40
41
const start = nodes[0]?.start;
42
const end = nodes[nodes.length - 1]?.end;
0 commit comments