File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,20 @@ export function SvelteBoundary(node, context) {
1818
1919 for ( const attribute of node . attributes ) {
2020 if (
21- attribute . type === 'Attribute' &&
22- attribute . name === 'onerror' &&
23- attribute . value !== true &&
24- ! Array . isArray ( attribute . value )
21+ attribute . type !== 'Attribute' ||
22+ attribute . value === true ||
23+ Array . isArray ( attribute . value )
2524 ) {
25+ continue ;
26+ }
27+ if ( attribute . name === 'onerror' ) {
2628 onerror = /** @type {Expression } */ (
2729 context . visit ( attribute . value . expression , context . state )
2830 ) ;
31+ } else if ( attribute . name === 'failed' ) {
32+ failed_param = /** @type {Expression } */ (
33+ context . visit ( attribute . value . expression , context . state )
34+ ) ;
2935 }
3036 }
3137
You can’t perform that action at this time.
0 commit comments