/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/e2e/worker-webpack5/lib/sharedCode.js
17 строк
389 B
Tim Neutkens
Convert test/integration to isolated tests (#93247)
11 май 2026, 14:55
Не верифицирован
11 май 2026, 14:55
8141dcf
Код
Авторство
О чём код?
export function Expensive() { const start = performance.now() let i = 99999 const bigArray = [] while (--i) { bigArray.push(i) } const endTime = performance.now() if (typeof window === 'undefined') { console.log('[WORKER] Completed expensive function in', endTime - start) } else { console.log('[WEB] Completed expensive function in', endTime - start) } }