(path)
| 916 | a.__matchVarCount - b.__matchVarCount |
| 917 | ); |
| 918 | function tryMatchRoute(path) { |
| 919 | if (path.match(/\/\._[^\/]+$/)) { |
| 920 | // Apple Double ._whatever file for xattrs |
| 921 | throw new UnixError(unix.ENOTSUP); |
| 922 | } |
| 923 | |
| 924 | for (let route of sortedRoutes) { |
| 925 | const vars = route.__match(path); |
| 926 | if (vars) { return [route, vars]; } |
| 927 | } |
| 928 | throw new UnixError(unix.ENOENT); |
| 929 | } |
| 930 | |
| 931 | let port; |
| 932 | async function onMessage(req) { |