GeezerVison is showing github.com — deps: update ada to 3.2.2 · nodejs/node@ec29f56
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deps/ada/ada.cpp +11-3Lines changed: 11 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/* auto-generated on 2025-03-10 13:14:56 -0400. Do not edit! */ | | 1 | +/* auto-generated on 2025-03-30 13:24:42 -0400. Do not edit! */ | 2 | 2 | /* begin file src/ada.cpp */ | 3 | 3 | #include "ada.h" | 4 | 4 | /* begin file src/checkers.cpp */ | @@ -13334,10 +13334,18 @@ result_type parse_url_impl(std::string_view user_input, | 13334 | 13334 | input_position = input_size + 1; | 13335 | 13335 | } | 13336 | 13336 | url.has_opaque_path = true; | | 13337 | + | 13337 | 13338 | // This is a really unlikely scenario in real world. We should not seek | 13338 | 13339 | // to optimize it. | 13339 | | - url.update_base_pathname(unicode::percent_encode( | 13340 | | - view, character_sets::C0_CONTROL_PERCENT_ENCODE)); | | 13340 | + if (view.ends_with(' ')) { | | 13341 | + std::string modified_view = | | 13342 | + std::string(view.begin(), view.end() - 1) + "%20"; | | 13343 | + url.update_base_pathname(unicode::percent_encode( | | 13344 | + modified_view, character_sets::C0_CONTROL_PERCENT_ENCODE)); | | 13345 | + } else { | | 13346 | + url.update_base_pathname(unicode::percent_encode( | | 13347 | + view, character_sets::C0_CONTROL_PERCENT_ENCODE)); | | 13348 | + } | 13341 | 13349 | break; | 13342 | 13350 | } | 13343 | 13351 | case state::PORT: { | |
Collapse file Copy file name to clipboardExpand all lines: deps/ada/ada.h +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/* auto-generated on 2025-03-10 13:14:56 -0400. Do not edit! */ | | 1 | +/* auto-generated on 2025-03-30 13:24:42 -0400. Do not edit! */ | 2 | 2 | /* begin file include/ada.h */ | 3 | 3 | /** | 4 | 4 | * @file ada.h | @@ -5859,7 +5859,6 @@ tl::expected<url_pattern<regex_provider>, errors> parse_url_pattern_impl( | 5859 | 5859 | // TODO: Optimization opportunity. | 5860 | 5860 | if (scheme::is_special(*processed_init->protocol)) { | 5861 | 5861 | std::string_view port = processed_init->port.value(); | 5862 | | - helpers::trim_c0_whitespace(port); | 5863 | 5862 | if (std::to_string(scheme::get_special_port(*processed_init->protocol)) == | 5864 | 5863 | port) { | 5865 | 5864 | processed_init->port->clear(); | @@ -10503,14 +10502,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) { | 10503 | 10502 | #ifndef ADA_ADA_VERSION_H | 10504 | 10503 | #define ADA_ADA_VERSION_H | 10505 | 10504 |
| 10506 | | -#define ADA_VERSION "3.2.1" | | 10505 | +#define ADA_VERSION "3.2.2" | 10507 | 10506 |
| 10508 | 10507 | namespace ada { | 10509 | 10508 |
| 10510 | 10509 | enum { | 10511 | 10510 | ADA_VERSION_MAJOR = 3, | 10512 | 10511 | ADA_VERSION_MINOR = 2, | 10513 | | - ADA_VERSION_REVISION = 1, | | 10512 | + ADA_VERSION_REVISION = 2, | 10514 | 10513 | }; | 10515 | 10514 |
| 10516 | 10515 | } // namespace ada | |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,8 +28,8 @@ Last update: | 28 | 28 | - resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing | 29 | 29 | - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources | 30 | 30 | - streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams | 31 | | -- url: https://github.com/web-platform-tests/wpt/tree/d86fcc9e87/url | 32 | | -- urlpattern: https://github.com/web-platform-tests/wpt/tree/6ceca69d26/urlpattern | | 31 | +- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url | | 32 | +- urlpattern: https://github.com/web-platform-tests/wpt/tree/f07d05f49c/urlpattern | 33 | 33 | - user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing | 34 | 34 | - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi | 35 | 35 | - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi | |
Collapse file Copy file name to clipboard +21Lines changed: 21 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +promise_test(() => fetch("resources/IdnaTestV2-removed.json").then(res => res.json()).then(runTests), "Loading data…"); | | 2 | + | | 3 | +function runTests(idnaTests) { | | 4 | + for (const idnaTest of idnaTests) { | | 5 | + if (typeof idnaTest === "string") { | | 6 | + continue // skip comments | | 7 | + } | | 8 | + | | 9 | + test(() => { | | 10 | + if (idnaTest.output === null) { | | 11 | + assert_throws_js(TypeError, () => new URL(`https://${idnaTest.input}/x`)); | | 12 | + } else { | | 13 | + const url = new URL(`https://${idnaTest.input}/x`); | | 14 | + assert_equals(url.host, idnaTest.output); | | 15 | + assert_equals(url.hostname, idnaTest.output); | | 16 | + assert_equals(url.pathname, "/x"); | | 17 | + assert_equals(url.href, `https://${idnaTest.output}/x`); | | 18 | + } | | 19 | + }, `ToASCII("${idnaTest.input}")${idnaTest.comment ? " " + idnaTest.comment : ""}`); | | 20 | + } | | 21 | +} |
Collapse file Copy file name to clipboard +104Lines changed: 104 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +[ | | 2 | + "This is generated with the help from ../tools/IdnaTestV2-compare.py.", | | 3 | + "These tests are from an older IdnaTestV2 and thus the comment line may no longer be accurate.", | | 4 | + { | | 5 | + "comment": "P1; V6; V3 (ignored)", | | 6 | + "input": "-\udb40\ude56\ua867\uff0e\udb40\ude82\ud8dc\udd83\ud83c\udd09", | | 7 | + "output": null | | 8 | + }, | | 9 | + { | | 10 | + "comment": "P1; V5; V6", | | 11 | + "input": "\ud83c\udd04\uff0e\u1cdc\u2488\u00df", | | 12 | + "output": null | | 13 | + }, | | 14 | + { | | 15 | + "comment": "P1; V5; V6", | | 16 | + "input": "\ud83c\udd04\uff0e\u1cdc\u2488SS", | | 17 | + "output": null | | 18 | + }, | | 19 | + { | | 20 | + "comment": "P1; V5; V6", | | 21 | + "input": "\ud83c\udd04\uff0e\u1cdc\u2488ss", | | 22 | + "output": null | | 23 | + }, | | 24 | + { | | 25 | + "comment": "P1; V5; V6", | | 26 | + "input": "\ud83c\udd04\uff0e\u1cdc\u2488Ss", | | 27 | + "output": null | | 28 | + }, | | 29 | + { | | 30 | + "comment": "C2; P1; V6", | | 31 | + "input": "\u0756\u3002\u3164\u200d\u03c2", | | 32 | + "output": null | | 33 | + }, | | 34 | + { | | 35 | + "comment": "C2; P1; V6", | | 36 | + "input": "\u0756\u3002\u1160\u200d\u03c2", | | 37 | + "output": null | | 38 | + }, | | 39 | + { | | 40 | + "comment": "C2; P1; V6", | | 41 | + "input": "\u0756\u3002\u1160\u200d\u03a3", | | 42 | + "output": null | | 43 | + }, | | 44 | + { | | 45 | + "comment": "C2; P1; V6", | | 46 | + "input": "\u0756\u3002\u1160\u200d\u03c3", | | 47 | + "output": null | | 48 | + }, | | 49 | + { | | 50 | + "comment": "C2; P1; V6", | | 51 | + "input": "\u0756\u3002\u3164\u200d\u03a3", | | 52 | + "output": null | | 53 | + }, | | 54 | + { | | 55 | + "comment": "C2; P1; V6", | | 56 | + "input": "\u0756\u3002\u3164\u200d\u03c3", | | 57 | + "output": null | | 58 | + }, | | 59 | + { | | 60 | + "comment": "P1; V6", | | 61 | + "input": "\ud83c\udd07\u4f10\ufe12.\ud831\ude5a\ua8c4", | | 62 | + "output": null | | 63 | + }, | | 64 | + { | | 65 | + "comment": "P1; V5; V6", | | 66 | + "input": "\ud802\ude3f.\ud83c\udd06\u2014", | | 67 | + "output": null | | 68 | + }, | | 69 | + { | | 70 | + "comment": "C2; P1; V5; V6", | | 71 | + "input": "\u1c32\ud83c\udd08\u2f9b\u05a6\uff0e\u200d\uda7e\udd64\u07fd", | | 72 | + "output": null | | 73 | + }, | | 74 | + { | | 75 | + "comment": "C2; P1; V5; V6", | | 76 | + "input": "\ud83e\udc9f\ud83c\udd08\u200d\ua84e\uff61\u0f84", | | 77 | + "output": null | | 78 | + }, | | 79 | + { | | 80 | + "comment": "P1; V6", | | 81 | + "input": "\udaa5\udeaa\uff61\ud83c\udd02", | | 82 | + "output": null | | 83 | + }, | | 84 | + { | | 85 | + "comment": "C2; P1; V6", | | 86 | + "input": "\u186f\u2689\u59f6\ud83c\udd09\uff0e\u06f7\u200d\ud83c\udfaa\u200d", | | 87 | + "output": null | | 88 | + }, | | 89 | + { | | 90 | + "comment": "C1; P1; V5; V6", | | 91 | + "input": "\ua67d\u200c\ud87e\uddf5\ud83c\udd06\uff61\u200c\ud804\udc42\u1b01", | | 92 | + "output": null | | 93 | + }, | | 94 | + { | | 95 | + "comment": "C1; P1; V5; V6", | | 96 | + "input": "\ua67d\u200c\u9723\ud83c\udd06\uff61\u200c\ud804\udc42\u1b01", | | 97 | + "output": null | | 98 | + }, | | 99 | + { | | 100 | + "comment": "C1; P1; V5; V6; V3 (ignored)", | | 101 | + "input": "-\u1897\u200c\ud83c\udd04.\ud805\udf22", | | 102 | + "output": null | | 103 | + } | | 104 | +] |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/setters_tests.json +52-16Lines changed: 52 additions & 16 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1177 | 1177 | "host": "test.invalid", | 1178 | 1178 | "hostname": "test.invalid" | 1179 | 1179 | } | | 1180 | + }, | | 1181 | + { | | 1182 | + "href": "https://test.invalid/", | | 1183 | + "new_value": "test/@aaa", | | 1184 | + "expected": { | | 1185 | + "href": "https://test/", | | 1186 | + "host": "test", | | 1187 | + "hostname": "test" | | 1188 | + } | | 1189 | + }, | | 1190 | + { | | 1191 | + "href": "https://test.invalid/", | | 1192 | + "new_value": "test/:aaa", | | 1193 | + "expected": { | | 1194 | + "href": "https://test/", | | 1195 | + "host": "test", | | 1196 | + "hostname": "test" | | 1197 | + } | 1180 | 1198 | } | 1181 | 1199 | ], | 1182 | 1200 | "hostname": [ | | 1624 | 1642 | "host": "test.invalid", | 1625 | 1643 | "hostname": "test.invalid" | 1626 | 1644 | } | | 1645 | + }, | | 1646 | + { | | 1647 | + "href": "https://test.invalid/", | | 1648 | + "new_value": "test/@aaa", | | 1649 | + "expected": { | | 1650 | + "href": "https://test/", | | 1651 | + "host": "test", | | 1652 | + "hostname": "test" | | 1653 | + } | | 1654 | + }, | | 1655 | + { | | 1656 | + "href": "https://test.invalid/", | | 1657 | + "new_value": "test/:aaa", | | 1658 | + "expected": { | | 1659 | + "href": "https://test/", | | 1660 | + "host": "test", | | 1661 | + "hostname": "test" | | 1662 | + } | 1627 | 1663 | } | 1628 | 1664 | ], | 1629 | 1665 | "port": [ | | 2241 | 2277 | } | 2242 | 2278 | }, | 2243 | 2279 | { | 2244 | | - "comment": "Drop trailing spaces from trailing opaque paths", | | 2280 | + "comment": "Trailing spaces and opaque paths", | 2245 | 2281 | "href": "data:space ?query", | 2246 | 2282 | "new_value": "", | 2247 | 2283 | "expected": { | 2248 | | - "href": "data:space", | 2249 | | - "pathname": "space", | | 2284 | + "href": "data:space%20", | | 2285 | + "pathname": "space%20", | 2250 | 2286 | "search": "" | 2251 | 2287 | } | 2252 | 2288 | }, | 2253 | 2289 | { | 2254 | 2290 | "href": "sc:space ?query", | 2255 | 2291 | "new_value": "", | 2256 | 2292 | "expected": { | 2257 | | - "href": "sc:space", | 2258 | | - "pathname": "space", | | 2293 | + "href": "sc:space%20", | | 2294 | + "pathname": "space%20", | 2259 | 2295 | "search": "" | 2260 | 2296 | } | 2261 | 2297 | }, | 2262 | 2298 | { | 2263 | | - "comment": "Do not drop trailing spaces from non-trailing opaque paths", | | 2299 | + "comment": "Trailing spaces and opaque paths", | 2264 | 2300 | "href": "data:space ?query#fragment", | 2265 | 2301 | "new_value": "", | 2266 | 2302 | "expected": { | 2267 | | - "href": "data:space #fragment", | | 2303 | + "href": "data:space %20#fragment", | 2268 | 2304 | "search": "" | 2269 | 2305 | } | 2270 | 2306 | }, | 2271 | 2307 | { | 2272 | 2308 | "href": "sc:space ?query#fragment", | 2273 | 2309 | "new_value": "", | 2274 | 2310 | "expected": { | 2275 | | - "href": "sc:space #fragment", | | 2311 | + "href": "sc:space %20#fragment", | 2276 | 2312 | "search": "" | 2277 | 2313 | } | 2278 | 2314 | }, | | 2429 | 2465 | } | 2430 | 2466 | }, | 2431 | 2467 | { | 2432 | | - "comment": "Drop trailing spaces from trailing opaque paths", | | 2468 | + "comment": "Trailing spaces and opaque paths", | 2433 | 2469 | "href": "data:space #fragment", | 2434 | 2470 | "new_value": "", | 2435 | 2471 | "expected": { | 2436 | | - "href": "data:space", | 2437 | | - "pathname": "space", | | 2472 | + "href": "data:space %20", | | 2473 | + "pathname": "space %20", | 2438 | 2474 | "hash": "" | 2439 | 2475 | } | 2440 | 2476 | }, | 2441 | 2477 | { | 2442 | 2478 | "href": "sc:space #fragment", | 2443 | 2479 | "new_value": "", | 2444 | 2480 | "expected": { | 2445 | | - "href": "sc:space", | 2446 | | - "pathname": "space", | | 2481 | + "href": "sc:space %20", | | 2482 | + "pathname": "space %20", | 2447 | 2483 | "hash": "" | 2448 | 2484 | } | 2449 | 2485 | }, | 2450 | 2486 | { | 2451 | | - "comment": "Do not drop trailing spaces from non-trailing opaque paths", | | 2487 | + "comment": "Trailing spaces and opaque paths", | 2452 | 2488 | "href": "data:space ?query#fragment", | 2453 | 2489 | "new_value": "", | 2454 | 2490 | "expected": { | 2455 | | - "href": "data:space ?query", | | 2491 | + "href": "data:space %20?query", | 2456 | 2492 | "hash": "" | 2457 | 2493 | } | 2458 | 2494 | }, | 2459 | 2495 | { | 2460 | 2496 | "href": "sc:space ?query#fragment", | 2461 | 2497 | "new_value": "", | 2462 | 2498 | "expected": { | 2463 | | - "href": "sc:space ?query", | | 2499 | + "href": "sc:space %20?query", | 2464 | 2500 | "hash": "" | 2465 | 2501 | } | 2466 | 2502 | }, | |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/toascii.json +9-3Lines changed: 9 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | [ | 2 | 2 | "This contains assorted IDNA tests that IdnaTestV2 might not cover.", | 3 | 3 | "Feel free to deduplicate with a clear commit message.", | | 4 | + "", | | 5 | + "If the test only applies to the URL Standard's 'domain to ASCII', ", | | 6 | + "and not to TR46's ToASCII, then tag it with `urlStandardOnly`", | 4 | 7 | { | 5 | 8 | "comment": "Label with hyphens in 3rd and 4th position", | 6 | 9 | "input": "aa--", | | 239 | 242 | }, | 240 | 243 | { | 241 | 244 | "input": "www.lookout.net\u2A7480", | 242 | | - "output": null | | 245 | + "output": null, | | 246 | + "urlStandardOnly": true | 243 | 247 | }, | 244 | 248 | { | 245 | 249 | "input": "www\u00A0.lookout.net", | 246 | | - "output": null | | 250 | + "output": null, | | 251 | + "urlStandardOnly": true | 247 | 252 | }, | 248 | 253 | { | 249 | 254 | "input": "\u1680lookout.net", | 250 | 255 | "output": null | 251 | 256 | }, | 252 | 257 | { | 253 | 258 | "input": "\u001flookout.net", | 254 | | - "output": null | | 259 | + "output": null, | | 260 | + "urlStandardOnly": true | 255 | 261 | }, | 256 | 262 | { | 257 | 263 | "input": "look\u06DDout.net", | |
|