File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export function SvelteBoundary(node, context) {
38
38
continue ;
39
39
}
40
40
41
+ // Skip non-attributes with a single value
41
42
if (
42
43
attribute . type !== 'Attribute' ||
43
44
attribute . value === true ||
@@ -46,6 +47,7 @@ export function SvelteBoundary(node, context) {
46
47
continue ;
47
48
}
48
49
50
+ // Currently we only support `onerror` and `failed` props
49
51
if ( attribute . name === 'onerror' || attribute . name === 'failed' ) {
50
52
const value = /** @type {Expression } */ (
51
53
context . visit ( attribute . value . expression , context . state )
@@ -61,6 +63,7 @@ export function SvelteBoundary(node, context) {
61
63
}
62
64
}
63
65
66
+ // Capture the `failed` implicit snippet prop
64
67
for ( const child of node . fragment . nodes ) {
65
68
if ( child . type === 'SnippetBlock' && child . expression . name === 'failed' ) {
66
69
/** @type {Statement[] } */
You can’t perform that action at this time.
0 commit comments