Uh oh!
There was an error while loading. Please reload this page.
process: generate list of allowed env flags programmatically - #22638
process: generate list of allowed env flags programmatically#22638addaleax wants to merge 4 commits into
Conversation
901d187 to
290af4bCompareThere was a problem hiding this comment.
I would prefer to pass through filter options into getOptions instead of doing the filtering here.
Since it has a string option at the moment, it would likely be best to accept an object for the options instead.
Another alternative to the current way would be to only iterate once over the entries (this is also nicer to read for me):
constallowedV8EnvironmentFlags=[];constallowedNodeEnvironmentFlags=[];for(const[name,info]ofoptions){if(info.envVarSettings===kAllowedInEnvironment){if(info.type===KV8Option){allowedV8EnvironmentFlags.push(name);}else{allowedNodeEnvironmentFlags.push(name);}}}There was a problem hiding this comment.
I’ve gone with the second option for now, but yes, ultimately it might be better to do this in C++ land.
There was a problem hiding this comment.
Nit: retrieving the value multiple times is not necessary.
290af4b to
fa245b8Compareaddaleax
commented
Sep 5, 2018
Avoids having a separate, second source of truth on this matter.
fa245b8 to
1f37916CompareNew CI: https://ci.nodejs.org/job/node-test-pull-request/17028/ (:heavy_check_mark:) |
addaleax
commented
Sep 9, 2018
Avoids having a separate, second source of truth on this matter. PR-URL: #22638 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #22638 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos
commented
Sep 10, 2018
This needs a backport PR to land on |
Avoids having a separate, second source of truth on this matter. PR-URL: #22638 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #22638 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Avoids having a separate, second source of truth on this matter.
The second diff is best viewed in whitespace-adjusted mode (append
?w=1to GitHub URL).Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes