| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 272484b commit 3f78d4e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -687,6 +687,23 @@ Make built-in language features like `eval` and `new Function` that generate | |||
| 687 | 687 | code from strings throw an exception instead. This does not affect the Node.js | |
| 688 | 688 | `node:vm` module. | |
| 689 | 689 | ||
| 690 | + ### `--expose-gc` | ||
| 691 | + | ||
| 692 | + <!-- YAML | ||
| 693 | + added: REPLACEME | ||
| 694 | + --> | ||
| 695 | + | ||
| 696 | + > Stability: 1 - Experimental. This flag is inherited from V8 and is subject to | ||
| 697 | + > change upstream. | ||
| 698 | + | ||
| 699 | + This flag will expose the gc extension from V8. | ||
| 700 | + | ||
| 701 | + ```js | ||
| 702 | + if (globalThis.gc) { | ||
| 703 | + globalThis.gc(); | ||
| 704 | + } | ||
| 705 | + ``` | ||
| 706 | + | ||
| 690 | 707 | ### `--dns-result-order=order` | |
| 691 | 708 | ||
| 692 | 709 | <!-- YAML | |
@@ -2819,6 +2836,7 @@ V8 options that are allowed are: | |||
| 2819 | 2836 | * `--abort-on-uncaught-exception` | |
| 2820 | 2837 | * `--disallow-code-generation-from-strings` | |
| 2821 | 2838 | * `--enable-etw-stack-walking` | |
| 2839 | + * `--expose-gc` | ||
| 2822 | 2840 | * `--huge-max-old-generation-size` | |
| 2823 | 2841 | * `--interpreted-frames-native-stack` | |
| 2824 | 2842 | * `--jitless` | |
@@ -3148,6 +3166,8 @@ documented here: | |||
| 3148 | 3166 | ||
| 3149 | 3167 | ### `--enable-etw-stack-walking` | |
| 3150 | 3168 | ||
| 3169 | + ### `--expose-gc` | ||
| 3170 | + | ||
| 3151 | 3171 | ### `--harmony-shadow-realm` | |
| 3152 | 3172 | ||
| 3153 | 3173 | ### `--huge-max-old-generation-size` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -506,6 +506,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { | |||
| 506 | 506 | AddOption("--experimental-report", "", NoOp{}, kAllowedInEnvvar); | |
| 507 | 507 | AddOption( | |
| 508 | 508 | "--experimental-wasi-unstable-preview1", "", NoOp{}, kAllowedInEnvvar); | |
| 509 | + AddOption("--expose-gc", "expose gc extension", V8Option{}, kAllowedInEnvvar); | ||
| 509 | 510 | AddOption("--expose-internals", "", &EnvironmentOptions::expose_internals); | |
| 510 | 511 | AddOption("--frozen-intrinsics", | |
| 511 | 512 | "experimental frozen intrinsics support", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,6 +69,7 @@ if (common.hasCrypto) { | |||
| 69 | 69 | // V8 options | |
| 70 | 70 | expect('--abort_on-uncaught_exception', 'B\n'); | |
| 71 | 71 | expect('--disallow-code-generation-from-strings', 'B\n'); | |
| 72 | + expect('--expose-gc', 'B\n'); | ||
| 72 | 73 | expect('--huge-max-old-generation-size', 'B\n'); | |
| 73 | 74 | expect('--jitless', 'B\n'); | |
| 74 | 75 | expect('--max-old-space-size=0', 'B\n'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments