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

Function run

benchmarking/benchmarks/reactivity/tests/kairo_mux.bench.js:23–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 return {
22 destroy,
23 run() {
24 for (let i = 0; i < 10; i++) {
25 $.flush(() => {
26 $.set(heads[i], i);
27 });
28 assert.equal($.get(splited[i]), i + 1);
29 }
30 for (let i = 0; i < 10; i++) {
31 $.flush(() => {
32 $.set(heads[i], i * 2);
33 });
34 assert.equal($.get(splited[i]), i * 2 + 1);
35 }
36 }
37 };
38};

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
setMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected