Skip to content

Commit a78111f

Browse files
committed
fix: remove .at(-1)
1 parent dfbc271 commit a78111f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/client/dom/template.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function structure_to_fragment(structure, ns, namespace_stack = [], foreign_obje
9292
let namespace =
9393
foreign_object_count > 0
9494
? undefined
95-
: namespace_stack.at(-1) ??
95+
: namespace_stack[namespace_stack.length - 1] ??
9696
(ns
9797
? ns === 'svg'
9898
? NAMESPACE_SVG
@@ -104,7 +104,7 @@ function structure_to_fragment(structure, ns, namespace_stack = [], foreign_obje
104104
: item.e === 'math'
105105
? NAMESPACE_MATHML
106106
: undefined);
107-
if (namespace !== namespace_stack.at(-1)) {
107+
if (namespace !== namespace_stack[namespace_stack.length - 1]) {
108108
namespace_stack.push(namespace);
109109
}
110110
var args = [item.e];

0 commit comments

Comments
 (0)