MCPcopy
hub / github.com/sveltejs/svelte / run

Function run

benchmarking/benchmarks/reactivity/tests/repeated_deps.bench.js:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 return {
27 destroy,
28 run() {
29 for (let i = 0; i < 5; i++) {
30 $.flush(() => $.set(order, i));
31 assert.equal($.get(total), (ARRAY_SIZE * (ARRAY_SIZE - 1)) / 2); // sum of 0..999
32 }
33 }
34 };
35};

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
setMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected