| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6f9f2c5 commit e1347b4
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -170,6 +170,14 @@ added: v12.9.0 | |||
| 170 | 170 | ||
| 171 | 171 | Enable experimental JSON support for the ES Module loader. | |
| 172 | 172 | ||
| 173 | + ### `--experimental-loader=module` | ||
| 174 | + <!-- YAML | ||
| 175 | + added: v9.0.0 | ||
| 176 | + --> | ||
| 177 | + | ||
| 178 | + Specify the `module` of a custom [experimental ECMAScript Module loader][]. | ||
| 179 | + `module` may be either a path to a file, or an ECMAScript Module name. | ||
| 180 | + | ||
| 173 | 181 | ### `--experimental-modules` | |
| 174 | 182 | <!-- YAML | |
| 175 | 183 | added: v8.5.0 | |
@@ -405,14 +413,6 @@ Specify ways of the inspector web socket url exposure. | |||
| 405 | 413 | By default inspector websocket url is available in stderr and under `/json/list` | |
| 406 | 414 | endpoint on `http://host:port/json/list`. | |
| 407 | 415 | ||
| 408 | - ### `--experimental-loader=module` | ||
| 409 | - <!-- YAML | ||
| 410 | - added: v9.0.0 | ||
| 411 | - --> | ||
| 412 | - | ||
| 413 | - Specify the `module` of a custom [experimental ECMAScript Module loader][]. | ||
| 414 | - `module` may be either a path to a file, or an ECMAScript Module name. | ||
| 415 | - | ||
| 416 | 416 | ### `--insecure-http-parser` | |
| 417 | 417 | <!-- YAML | |
| 418 | 418 | added: v13.4.0 | |
@@ -423,6 +423,18 @@ interoperability with non-conformant HTTP implementations. It may also allow | |||
| 423 | 423 | request smuggling and other HTTP attacks that rely on invalid headers being | |
| 424 | 424 | accepted. Avoid using this option. | |
| 425 | 425 | ||
| 426 | + ### `--jitless` | ||
| 427 | + <!-- YAML | ||
| 428 | + added: v12.0.0 | ||
| 429 | + --> | ||
| 430 | + | ||
| 431 | + Disable [runtime allocation of executable memory][jitless]. This may be | ||
| 432 | + required on some platforms for security reasons. It can also reduce attack | ||
| 433 | + surface on other platforms, but the performance impact may be severe. | ||
| 434 | + | ||
| 435 | + This flag is inherited from V8 and is subject to change upstream. It may | ||
| 436 | + disappear in a non-semver-major release. | ||
| 437 | + | ||
| 426 | 438 | ### `--max-http-header-size=size` | |
| 427 | 439 | <!-- YAML | |
| 428 | 440 | added: v11.6.0 | |
@@ -1156,6 +1168,7 @@ V8 options that are allowed are: | |||
| 1156 | 1168 | * `--abort-on-uncaught-exception` | |
| 1157 | 1169 | * `--disallow-code-generation-from-strings` | |
| 1158 | 1170 | * `--interpreted-frames-native-stack` | |
| 1171 | + * `--jitless` | ||
| 1159 | 1172 | * `--max-old-space-size` | |
| 1160 | 1173 | * `--perf-basic-prof-only-functions` | |
| 1161 | 1174 | * `--perf-basic-prof` | |
@@ -1391,5 +1404,6 @@ greater than `4` (its current default value). For more information, see the | |||
| 1391 | 1404 | [debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications | |
| 1392 | 1405 | [emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor | |
| 1393 | 1406 | [experimental ECMAScript Module loader]: esm.html#esm_experimental_loaders | |
| 1407 | + [jitless]: https://v8.dev/blog/jitless | ||
| 1394 | 1408 | [libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html | |
| 1395 | 1409 | [remote code execution]: https://www.owasp.org/index.php/Code_Injection | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,6 +119,11 @@ Enable experimental ES modules support for import.meta.resolve(). | |||
| 119 | 119 | .It Fl -experimental-json-modules | |
| 120 | 120 | Enable experimental JSON interop support for the ES Module loader. | |
| 121 | 121 | . | |
| 122 | + .It Fl -experimental-loader Ns = Ns Ar module | ||
| 123 | + Specify the | ||
| 124 | + .Ar module | ||
| 125 | + to use as a custom module loader. | ||
| 126 | + . | ||
| 122 | 127 | .It Fl -experimental-modules | |
| 123 | 128 | Enable experimental latest experimental modules features. | |
| 124 | 129 | . | |
@@ -220,17 +225,21 @@ Default is | |||
| 220 | 225 | V8 Inspector integration allows attaching Chrome DevTools and IDEs to Node.js instances for debugging and profiling. | |
| 221 | 226 | It uses the Chrome DevTools Protocol. | |
| 222 | 227 | . | |
| 223 | - .It Fl -experimental-loader Ns = Ns Ar module | ||
| 224 | - Specify the | ||
| 225 | - .Ar module | ||
| 226 | - to use as a custom module loader. | ||
| 227 | - . | ||
| 228 | 228 | .It Fl -insecure-http-parser | |
| 229 | 229 | Use an insecure HTTP parser that accepts invalid HTTP headers. This may allow | |
| 230 | 230 | interoperability with non-conformant HTTP implementations. It may also allow | |
| 231 | 231 | request smuggling and other HTTP attacks that rely on invalid headers being | |
| 232 | 232 | accepted. Avoid using this option. | |
| 233 | 233 | . | |
| 234 | + .It Fl -jitless | ||
| 235 | + Disable runtime allocation of executable memory. This may be required on | ||
| 236 | + some platforms for security reasons. It can also reduce attack surface on | ||
| 237 | + other platforms, but the performance impact may be severe. | ||
| 238 | + . | ||
| 239 | + .Pp | ||
| 240 | + This flag is inherited from V8 and is subject to change upstream. It may | ||
| 241 | + disappear in a non-semver-major release. | ||
| 242 | + . | ||
| 234 | 243 | .It Fl -max-http-header-size Ns = Ns Ar size | |
| 235 | 244 | Specify the maximum size of HTTP headers in bytes. Defaults to 8KB. | |
| 236 | 245 | . | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -616,6 +616,10 @@ PerIsolateOptionsParser::PerIsolateOptionsParser( | |||
| 616 | 616 | "disallow eval and friends", | |
| 617 | 617 | V8Option{}, | |
| 618 | 618 | kAllowedInEnvironment); | |
| 619 | + AddOption("--jitless", | ||
| 620 | + "disable runtime allocation of executable memory", | ||
| 621 | + V8Option{}, | ||
| 622 | + kAllowedInEnvironment); | ||
| 619 | 623 | ||
| 620 | 624 | #ifdef NODE_REPORT | |
| 621 | 625 | AddOption("--report-uncaught-exception", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,6 +67,7 @@ if (common.hasCrypto) { | |||
| 67 | 67 | // V8 options | |
| 68 | 68 | expect('--abort_on-uncaught_exception', 'B\n'); | |
| 69 | 69 | expect('--disallow-code-generation-from-strings', 'B\n'); | |
| 70 | + expect('--jitless', 'B\n'); | ||
| 70 | 71 | expect('--max-old-space-size=0', 'B\n'); | |
| 71 | 72 | expect('--stack-trace-limit=100', | |
| 72 | 73 | /(\s*at f \(\[(eval|worker eval)\]:1:\d*\)\r?\n)/, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments