Skip to content

Commit

Permalink
fix(wpt): set global META_TITLE for the runner (nodejs#2008)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored and crysmags committed Feb 27, 2024
1 parent c625503 commit 88c815d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/wpt/runner/worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ runInThisContext(`
globalThis.Window = Object.getPrototypeOf(globalThis).constructor
`)

if (meta.title) {
runInThisContext(`globalThis.META_TITLE = "${meta.title}"`)
}

const harness = readFileSync(join(basePath, '/resources/testharness.js'), 'utf-8')
runInThisContext(harness)

Expand Down

0 comments on commit 88c815d

Please sign in to comment.