deno/ext
Nathan Whitaker 77f2a2c3f2
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-11 10:31:49 +05:30
..
broadcast_channel 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
cache 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
canvas 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
console 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
cron 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
crypto 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
fetch 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
ffi chore(ext/ffi): sym is unused on aarch64 linux (#23188) 2024-04-11 10:31:49 +05:30
fs 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
http 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
io 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
kv 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
napi 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
net 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
node fix(ext/node): Support returning tokens and option defaults in node:util.parseArgs (#23192) 2024-04-11 10:31:49 +05:30
tls 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
url 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
web fix(ext/node): MessagePort works (#22999) 2024-04-11 10:31:49 +05:30
webgpu 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
webidl 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
websocket 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
webstorage 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30