Skip to content

Commit 541f46f

Browse files
authored
Update packages/svelte/src/internal/client/dev/equality.js
1 parent 5ceb84b commit 541f46f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/svelte/src/internal/client/dev/equality.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { get_proxied_value } from '../proxy.js';
33

44
export function init_array_prototype_warnings() {
55
const array_prototype = Array.prototype;
6+
// The REPL ends up here over and over, and this prevents it from adding more and more patches
7+
// of the same kind to the prototype, which would slow down everything over time.
68
// @ts-expect-error
79
const cleanup = Array.__svelte_cleanup;
810
if (cleanup) {

0 commit comments

Comments
 (0)