Commit 8de78e4
committed
path: reduce type checking on some methods
a465840 added strict type
checking for the methods in the path module. However, dirname(),
basename(), and extname() actually had some undocumented uses
in the wild. This commit loosens the type checking on those
methods.
Fixes: #1215
PR-URL: #1216
Reviewed-By: Rod Vagg <rod@vagg.org>1 parent 3b9eab9 commit 8de78e4
2 files changed
+6
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
| |||
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
326 | | - | |
327 | | - | |
328 | 324 | | |
329 | 325 | | |
330 | 326 | | |
| |||
338 | 334 | | |
339 | 335 | | |
340 | 336 | | |
341 | | - | |
342 | 337 | | |
343 | 338 | | |
344 | 339 | | |
| |||
536 | 531 | | |
537 | 532 | | |
538 | 533 | | |
539 | | - | |
540 | | - | |
541 | 534 | | |
542 | 535 | | |
543 | 536 | | |
| |||
557 | 550 | | |
558 | 551 | | |
559 | 552 | | |
560 | | - | |
561 | | - | |
562 | 553 | | |
563 | 554 | | |
564 | 555 | | |
| |||
572 | 563 | | |
573 | 564 | | |
574 | 565 | | |
575 | | - | |
576 | 566 | | |
577 | 567 | | |
578 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
277 | | - | |
278 | 275 | | |
279 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
280 | 283 | | |
281 | 284 | | |
282 | 285 | | |
| |||
0 commit comments