deno
a2a79556 - fix(ext/node): improve node:dns module compatibility (#32704)

Commit
127 days ago
fix(ext/node): improve node:dns module compatibility (#32704) ## Summary - Support `--dns-result-order` flag via `NODE_OPTIONS` env var by parsing it in the node_options binding and making `dnsOrder` initialization lazy (evaluated at runtime instead of snapshot time) - Replace `node:punycode` import with `internal/idna` in `dns/promises` to avoid spurious punycode deprecation warning - Export `UV_ENOMEM` from uv binding - Add `DNSException` alias and `ErrorCaptureStackTrace` to `dnsException` for proper stack frame trimming - Emit `internal/test/binding` warning on first use - Handle `--dns-result-order` flag in node compat test runner Enables 5 additional `node:dns` compatibility tests: - `test-dns-default-order-ipv6.js` - `test-dns-default-order-verbatim.js` - `test-dns-lookup.js` - `test-dns-lookup-promises.js` - `test-dns-memory-error.js` --------- Signed-off-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading