Skip to content

Commit e37a936

Browse files
committed
prototype
1 parent 07f01eb commit e37a936

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ export function init_operations() {
4242
// @ts-ignore
4343
next_sibling_getter = get_descriptor(node_prototype, 'nextSibling').get;
4444
// @ts-ignore
45-
move_before_func = (
46-
get_descriptor(element_prototype, 'moveBefore') ??
47-
get_descriptor(node_prototype, 'insertBefore')
48-
).value;
45+
move_before_func = element_prototype.moveBefore ?? element_prototype.insertBefore;
4946

5047
// the following assignments improve perf of lookups on DOM nodes
5148
// @ts-expect-error

0 commit comments

Comments
 (0)