| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/757/pipeline |
Sorry, something went wrong.
There 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):
const allowedV8EnvironmentFlags = [];
const allowedNodeEnvironmentFlags = [];
for (const [name, info] of options) {
if (info.envVarSettings === kAllowedInEnvironment) {
if (info.type === KV8Option) {
allowedV8EnvironmentFlags.push(name);
} else {
allowedNodeEnvironmentFlags.push(name);
}
}
}
Sorry, something went wrong.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: retrieving the value multiple times is not necessary.
Sorry, something went wrong.
Sorry, something went wrong.
Avoids having a separate, second source of truth on this matter.
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/17028/ (:heavy_check_mark:) |
Sorry, something went wrong.
Sorry, something went wrong.
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>
|
This needs a backport PR to land on v10.x-staging |
Sorry, something went wrong.
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>
| Back | FazBrowse Home | New Git URL |
Avoids having a separate, second source of truth on this matter.
The second diff is best viewed in whitespace-adjusted mode (append ?w=1 to GitHub URL).
Checklist