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

Function run

benchmarking/benchmarks/reactivity/tests/kairo_diamond.bench.js:30–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 return {
29 destroy,
30 run() {
31 $.flush(() => {
32 $.set(head, 1);
33 });
34 assert.equal($.get(sum), 2 * width);
35 counter = 0;
36 for (let i = 0; i < 500; i++) {
37 $.flush(() => {
38 $.set(head, i);
39 });
40 assert.equal($.get(sum), (i + 1) * width);
41 }
42 assert.equal(counter, 500);
43 }
44 };
45};

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
setMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected