-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
node-api: preserve URL filenames without conversion #58578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
node-api: preserve URL filenames without conversion #58578
Conversation
Review requested:
|
6b4b308
to
0df3eb0
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58578 +/- ##
==========================================
- Coverage 90.21% 90.14% -0.07%
==========================================
Files 635 636 +1
Lines 187494 187895 +401
Branches 36838 36879 +41
==========================================
+ Hits 169144 169375 +231
- Misses 11145 11287 +142
- Partials 7205 7233 +28
🚀 New features to boost your workflow:
|
The CI failures are relevant: duration_ms: 212.99
exitcode: 1
severity: fail
stack: |-
node:assert:92
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'c:\\workspace\\node-test-binary-windows-native-suites\\node\\test\\node-api\\test_general\\build\\Release\\test_general.node'
- 'file:///c:/workspace/node-test-binary-windows-native-suites/node/test/node-api/test_general/build/Release/test_general.node'
at Object.<anonymous> (c:\workspace\node-test-binary-windows-native-suites\node\test\node-api\test_general\test.js:18:10)
at Module._compile (node:internal/modules/cjs/loader:1733:14)
at Object..js (node:internal/modules/cjs/loader:1898:10)
at Module.load (node:internal/modules/cjs/loader:1468:32)
at Module._load (node:internal/modules/cjs/loader:1285:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:152:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'c:\\workspace\\node-test-binary-windows-native-suites\\node\\test\\node-api\\test_general\\build\\Release\\test_general.node',
expected: 'file:///c:/workspace/node-test-binary-windows-native-suites/node/test/node-api/test_general/build/Release/test_general.node',
operator: 'strictEqual'
}
Node.js v25.0.0-pre |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I opened an issue on WHATWG to discuss Windows file path handling in URL parsing This discussion started from our PR here and ada-url PR ada-url/ada#957. |
Blocked as per #58578 (comment). |
allows us to process filenames that are already URLs by passing them unchanged