diff options
| author | Kenta Moriuchi <moriken@kimamass.com> | 2024-06-03 05:47:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 22:47:47 +0200 |
| commit | f8fdaa082b16cfa63afa59a7d9dff87ddf9f7138 (patch) | |
| tree | 1da6c80aed65933962cd9bfb76e73c62f35792de /tests/wpt/runner/runner.ts | |
| parent | 38ff9faff639385c10ccb6412470e1355c73327c (diff) | |
chore: update wpt suite (#24070)
Diffstat (limited to 'tests/wpt/runner/runner.ts')
| -rw-r--r-- | tests/wpt/runner/runner.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wpt/runner/runner.ts b/tests/wpt/runner/runner.ts index c7234da63..b404f2ad8 100644 --- a/tests/wpt/runner/runner.ts +++ b/tests/wpt/runner/runner.ts @@ -196,7 +196,7 @@ async function generateBundle(location: URL): Promise<string> { const doc = new DOMParser().parseFromString(body, "text/html"); assert(doc, "document should have been parsed"); const scripts = doc.getElementsByTagName("script"); - const title = doc.getElementsByTagName("title")[0]?.childNodes[0].nodeValue; + const title = doc.getElementsByTagName("title")[0]?.childNodes[0]?.nodeValue; const scriptContents = []; let inlineScriptCount = 0; if (title) { |
