From ee890c2e5c8040cc2101128730cfc42522308b6d Mon Sep 17 00:00:00 2001 From: tannevaled Date: Wed, 9 Sep 2026 15:55:39 +0200 Subject: [PATCH] js: track document.currentScript instead of hardcoding it to null document.currentScript was unconditionally null, so the standard Webpack/Turbopack idiom of reading document.currentScript.src to compute a chunk-loading base path always got an empty result outside a Worker. Found live on tailwindcss.com: its Turbopack runtime threw "chunk path empty but not in a worker" for every one of 10 lazily- loaded chunks. Fixed by tracking the synchronously-executing + + `) + mustHave(t, logs, "first=first", "second=second", "timer=null") +} + func TestDocumentTitleAndCookie(t *testing.T) { // Existing is updated in place. root, logs, _ := runJS(t, page(`