Skip to content

Commit 648dd8f

Browse files
committed
more fix for the wpt runner on Windows
Signed-off-by: Matteo Collina <[email protected]>
1 parent a0516ba commit 648dd8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/wpt/runner/runner.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'node:url'
55
import { Worker } from 'node:worker_threads'
66
import { colors, handlePipes, normalizeName, parseMeta, resolveStatusPath } from './util.mjs'
77

8-
const basePath = fileURLToPath(join(import.meta.url, '../..'))
8+
const basePath = fileURLToPath(new URL('..', import.meta.url))
99
const testPath = join(basePath, 'tests')
1010
const statusPath = join(basePath, 'status')
1111

@@ -131,7 +131,7 @@ export class WPTRunner extends EventEmitter {
131131
}
132132

133133
async run () {
134-
const workerPath = join(fileURLToPath(import.meta.url), '../worker.mjs')
134+
const workerPath = fileURLToPath(new URL('../worker.mjs', import.meta.url))
135135
/** @type {Set<Worker>} */
136136
const activeWorkers = new Set()
137137
let finishedFiles = 1

0 commit comments

Comments
 (0)