| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This work is modeled on nodejs#30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: nodejs#26758, nodejs#28800. This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: nodejs#30094 Refs: nodejs#26758 Refs: nodejs#28800
There was a problem hiding this comment.
LGTM. @joyeecheung do you have any concerns about documenting this flag?
Sorry, something went wrong.
There was a problem hiding this comment.
I'm OK with docing things that genuinely solve problems, otherwise they are undiscoverable by users. A reorg of the docs so v8 flags are in their own section with a specific (in)stability guarantee would be great (any takers?), but I don't think should block this.
Sorry, something went wrong.
There was a problem hiding this comment.
@sam-github i'd be happy to try to reorg the docs if i can find some time upcoming
Sorry, something went wrong.
v8 releases a new stable version roughly [every six weeks][], with the schedule corresponding to releases of new chrome versions. v8 maintenance of the previous stable version stops immediately, so Node.js minor versions that pull in the latest stable v8 may have arbitrary changes. [every six weeks]: https://v8.dev/docs/release-process
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
It’s great to see so many positive reviews for this PR; thanks everyone. I’d like to see it merged; what do I need to do for that to happen? |
Sorry, something went wrong.
Sorry, something went wrong.
This work is modeled on #30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: #26758, This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: #30094 Refs: #26758 Refs: #28800 PR-URL: #32100 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
Thank you for merging this. |
Sorry, something went wrong.
This work is modeled on #30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: #26758, This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: #30094 Refs: #26758 Refs: #28800 PR-URL: #32100 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Notable changes:
* async_hooks:
- add sync enterWith to ALS (Stephen Belanger)
#31945
* cli:
- allow --jitless V8 flag in NODE\_OPTIONS (Andrew Neitsch)
#32100
* fs:
- return first folder made by mkdir recursive (Benjamin Coe)
#31530
* n-api:
- define release 6 (Gabriel Schulhof)
#32058
* src:
- create a getter for kernel version (Juan José Arboleda)
#31732
* wasi:
- add returnOnExit option (Colin Ihrig)
#32101
PR-URL: #32185
Notable changes:
* async_hooks:
- add sync enterWith to ALS (Stephen Belanger)
#31945
* cli:
- allow --jitless V8 flag in NODE\_OPTIONS (Andrew Neitsch)
#32100
* fs:
- return first folder made by mkdir recursive (Benjamin Coe)
#31530
* n-api:
- define release 6 (Gabriel Schulhof)
#32058
* src:
- create a getter for kernel version (Juan José Arboleda)
#31732
* wasi:
- add returnOnExit option (Colin Ihrig)
#32101
PR-URL: #32185
Notable changes:
* async_hooks:
- add sync enterWith to ALS (Stephen Belanger)
#31945
* cli:
- allow --jitless V8 flag in NODE\_OPTIONS (Andrew Neitsch)
#32100
* fs:
- return first folder made by mkdir recursive (Benjamin Coe)
#31530
* n-api:
- define release 6 (Gabriel Schulhof)
#32058
* src:
- create a getter for kernel version (Juan José Arboleda)
#31732
* wasi:
- add returnOnExit option (Colin Ihrig)
#32101
PR-URL: #32185
Notable changes:
* async_hooks:
- add sync enterWith to ALS (Stephen Belanger)
#31945
* cli:
- allow --jitless V8 flag in NODE\_OPTIONS (Andrew Neitsch)
#32100
* fs:
- return first folder made by mkdir recursive (Benjamin Coe)
#31530
* n-api:
- define release 6 (Gabriel Schulhof)
#32058
* src:
- create a getter for kernel version (Juan José Arboleda)
#31732
* wasi:
- add returnOnExit option (Colin Ihrig)
#32101
PR-URL: #32185
This work is modeled on #30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: #26758, This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: #30094 Refs: #26758 Refs: #28800 PR-URL: #32100 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This work is modeled on #30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: #26758, This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: #30094 Refs: #26758 Refs: #28800 PR-URL: #32100 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
Should this be Semver-Minor? |
Sorry, something went wrong.
|
@MylesBorins I don’t think we need to count this as adding a new API, so I’m good with treating this as semver-patch (especially if you’re concerned about including this in 12.16.2 as a patch release). |
Sorry, something went wrong.
|
@addaleax ok that's good to know. We have a failure on AIX we are tracking down and suspect this might be the cause. @codebytere is pulling this out of 12.x-staging for right now to see if we can get green CI. if This is indeed the cause of the failures then we may need to open a backport to ensure things can pass. Will keep this PR updated |
Sorry, something went wrong.
|
@MylesBorins Can you point me towards that failure? It seems highly unlikely that this would cause issues, but if it does, this should be pretty straightforward to identify (by running node --jitless on an AIX machine). |
Sorry, something went wrong.
|
Hm yeah, this is in fact what’s causing the failures on AIX. I’d personally recommend skipping the added line from the test here on v12.x only, rather than excluding it from the release altogether. |
Sorry, something went wrong.
This work is modeled on nodejs#30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: nodejs#26758, This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: nodejs#30094 Refs: nodejs#26758 Refs: nodejs#28800 PR-URL: nodejs#32100 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
It seems like removing this PR indeed fixed AIX CI. https://ci.nodejs.org/job/node-test-commit-aix/29400/nodes=aix71-ppc64/testReport/(root)/test/parallel_test_cli_node_options/ is an example of the failure I've opened up a backport PR and kicked off CI, maybe that will help |
Sorry, something went wrong.
|
There’s already one instance of a conditional in that test file, skipping testing on ARM of an option that’s not supported on ARM: https://github.com/nodejs/node/blob/master/test/parallel/test-cli-node-options.js#L77-L79 // Unsupported on arm. See https://crbug.com/v8/8713.
if (!['arm', 'arm64'].includes(process.arch))
expect('--interpreted-frames-native-stack', 'B\n');
Does the --jitless line need a not-AIX check? (I’m assuming it’s not feasible for a random developer to easily get shell access to an AIX box for testing, but please correct me if I’m wrong about that.) |
Sorry, something went wrong.
This work is modeled on #30094 which allowed `--disallow-code-generation-from-strings` in `NODE_OPTIONS`. The `--jitless` v8 option has been supported since 12.0.0. As a v8 option, node automatically picks it up, but there have been a few issues that were resolved by simply telling users about the option: #26758, This PR: - allows `--jitless` in `NODE_OPTIONS` - documents `--jitless` - moves `--experimental-loader=module` to locally restore alphabetical order in option documentation Refs: #30094 Refs: #26758 Refs: #28800 Backport-PR-URL: #32594 PR-URL: #32100 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
| Back | FazBrowse Home | New Git URL |
This work is modeled on #30094 which allowed
--disallow-code-generation-from-strings in NODE_OPTIONS.
The --jitless v8 option has been supported since 12.0.0. As a v8 option,
node automatically picks it up, but there have been a few issues that were
resolved by simply telling users about the option: #26758, #28800.
This PR:
order in option documentation
Refs: #30094
Refs: #26758
Refs: #28800
Checklist