1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/ext
Nathan Whitaker 219a27dde5
fix(ext/node): Support returning tokens and option defaults in node:util.parseArgs (#23192)
Fixes #23179.
Fixes #22454.

Enables passing `{tokens: true}` to `parseArgs` and setting default
values for options.

With this PR, the observable framework works with deno out of the box
(no unstable flags needed).

The existing code was basically copied straight from node, so this PR
mostly just updates that (out of date) vendored code. Also fixes some
issues with error exports (before this PR, in certain error cases we
were attempting to construct error classes that weren't actually in
scope).

The last change (in the second commit) adds a small hack so that we
actually exercise the `test-parse-args.js` node_compat test, previously
it was reported as passing though it should have failed. That test now
passes.

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-04-02 16:20:48 -07:00
..
broadcast_channel chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
cache chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
canvas chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
console chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
cron chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
crypto chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
fetch chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
ffi chore(ext/ffi): sym is unused on aarch64 linux (#23188) 2024-04-02 20:57:31 +00:00
fs chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
http chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
io chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
kv chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
napi chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
net chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
node fix(ext/node): Support returning tokens and option defaults in node:util.parseArgs (#23192) 2024-04-02 16:20:48 -07:00
tls chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
url chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
web fix(ext/node): MessagePort works (#22999) 2024-04-02 17:06:09 +05:30
webgpu chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
webidl chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
websocket chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
webstorage chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30