Skip to content

Commit 98de6fa

Browse files
committed
bugbot
1 parent 8fbf916 commit 98de6fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/benchmark-react/bench/runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ async function runScenario(
7070
await harness.waitFor({ state: 'attached' });
7171

7272
const bench = await page.evaluateHandle('window.__BENCH__');
73-
if (!bench) throw new Error('window.__BENCH__ not found');
73+
if (await bench.evaluate(b => b == null))
74+
throw new Error('window.__BENCH__ not found');
7475

7576
const isMemory =
7677
scenario.action === 'mountUnmountCycle' &&

0 commit comments

Comments
 (0)