Skip to content

Commit 351d463

Browse files
authored
chore: remove array.at usage from runtime (#10619)
1 parent cc61559 commit 351d463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ export function hydrate(component, options) {
25402540
);
25412541
remove(hydration_fragment);
25422542
first_child.remove();
2543-
hydration_fragment.at(-1)?.nextSibling?.remove();
2543+
hydration_fragment[hydration_fragment.length - 1]?.nextSibling?.remove();
25442544
set_current_hydration_fragment(null);
25452545
return mount(component, options);
25462546
} else {

0 commit comments

Comments
 (0)