Re: [whatwg/url] feat: handle Windows file paths with backslashes in URL parsing (PR #874)

mertcanaltin left a comment (whatwg/url#874)

a test failure, I'll look into whether it's related to me

```shell
➜  whatwg-url git:(main) ✗ npm run test

> whatwg-url@14.2.0 pretest
> node scripts/get-latest-platform-tests.js && node scripts/transform.js


> whatwg-url@14.2.0 test
> node --test test/*.js

✔ new URL gives a null origin for file URLs (1.007542ms)
✔ serializeURLOrigin gives a null origin for file URLs (0.161084ms)
✔ Checking all examples on MDN pass (2.755084ms)
✔ /Users/mertcanaltin/Desktop/projects/whatwg-url/test/testharness.js (24.054375ms)
node:internal/modules/cjs/loader:1569
    throw err;
    ^

SyntaxError: /Users/mertcanaltin/Desktop/projects/whatwg-url/test/web-platform-tests/resources/IdnaTestV2.json: Unexpected non-whitespace character after JSON at position 3
    at parse (<anonymous>)
    at Module._extensions..json (node:internal/modules/cjs/loader:1566:39)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/Users/mertcanaltin/Desktop/projects/whatwg-url/test/web-platform.js:13:24)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)

Node.js v20.18.1
✖ /Users/mertcanaltin/Desktop/projects/whatwg-url/test/web-platform.js (32.628625ms)
  'test failed'

ℹ tests 5
ℹ suites 0
ℹ pass 4
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 44.601917

✖ failing tests:

test at test/web-platform.js:1:1
✖ /Users/mertcanaltin/Desktop/projects/whatwg-url/test/web-platform.js (32.628625ms)
  'test failed'
➜  whatwg-url git:(main) ✗ 
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/874#issuecomment-3101453537
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/874/c3101453537@github.com>

Received on Tuesday, 22 July 2025 07:37:57 UTC