| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Here are some relevant unit tests for checking if a path is absolute in win32 We should port some/all of them |
Sorry, something went wrong.
| } | ||
| } | ||
| } else if (code === 47/*/*/ || code === 92/*\*/) { | ||
| if (code === 47/*/*/ || code === 92/*\*/) { |
There was a problem hiding this comment.
This code is much simpler than the old code - any idea why it was so long and what purpose the checks served?
Sorry, something went wrong.
There was a problem hiding this comment.
I don't recall offhand, probably just a misinterpretation of the old regexp.
Sorry, something went wrong.
There was a problem hiding this comment.
Ok, the new version is correct on its own - the old one is just weird.
Sorry, something went wrong.
@benjamingr We already cover those more or less, especially so with the test case additions provided by this PR. |
Sorry, something went wrong.
|
@benjamingr I don't recall if it was performance reasons or what. If someone wants to try factoring that out and checking the performance differences, go for it :-). However I suspect that a helper function containing that factored out portion wouldn't be inlined (if for no reason other than code size), which would cause a performance regression to some degree. |
Sorry, something went wrong.
|
@mscdex ... can you add a bit more explanation to the commit log? Otherwise LGTM |
Sorry, something went wrong.
This commit fixes an inconsistency in absolute path checking compared to the absolute path detection used by the other path.win32 functions. Fixes: nodejs#6027 PR-URL: nodejs#6028
|
Thanks! LGTM! |
Sorry, something went wrong.
Sorry, something went wrong.
|
@thealphanerd AFAIK backporting the tests should be fine |
Sorry, something went wrong.
|
+1 to backporting the tests |
Sorry, something went wrong.
Adds test cases to ensure win32.isAbsolute is consistent. This is a backport from 3072546 ref: nodejs#6028
Notable changes: http: * Enclose IPv6 Host header in square brackets. This will enable proper seperation of the host adress from any port reference (Mihai Potra) #5314 path: * Make win32.isAbsolute more consistent (Brian White) #6028 PR-URL: #6060 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Notable changes: http: * Enclose IPv6 Host header in square brackets. This will enable proper seperation of the host adress from any port reference (Mihai Potra) #5314 path: * Make win32.isAbsolute more consistent (Brian White) #6028 PR-URL: #6060 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
| Back | FazBrowse Home | New Git URL |
Pull Request check-list
this change (including linting)?
test (or a benchmark) included?
Affected core subsystem(s)
Description of change
Fixes: #6027