src: allow --interpreted-frames-native-stack in NODE_OPTIONS
PR-URL: https://github.com/nodejs/node/pull/27744 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
c246f813f8
commit
01504904f3
@ -1052,6 +1052,7 @@ Node.js options that are allowed are:
|
||||
V8 options that are allowed are:
|
||||
<!-- node-options-v8 start -->
|
||||
- `--abort-on-uncaught-exception`
|
||||
- `--interpreted-frames-native-stack`
|
||||
- `--max-old-space-size`
|
||||
- `--perf-basic-prof-only-functions`
|
||||
- `--perf-basic-prof`
|
||||
|
@ -558,6 +558,9 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
|
||||
"for analysis",
|
||||
V8Option{},
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--interpreted-frames-native-stack",
|
||||
"help system profilers to translate JavaScript interpreted frames",
|
||||
V8Option{}, kAllowedInEnvironment);
|
||||
AddOption("--max-old-space-size", "", V8Option{}, kAllowedInEnvironment);
|
||||
AddOption("--perf-basic-prof", "", V8Option{}, kAllowedInEnvironment);
|
||||
AddOption("--perf-basic-prof-only-functions",
|
||||
|
@ -65,6 +65,9 @@ expect('--stack-trace-limit=100',
|
||||
/(\s*at f \(\[eval\]:1:\d*\)\r?\n){100}/,
|
||||
'(function f() { f(); })();',
|
||||
true);
|
||||
// Unsupported on arm. See https://crbug.com/v8/8713.
|
||||
if (!['arm', 'arm64'].includes(process.arch))
|
||||
expect('--interpreted-frames-native-stack', 'B\n');
|
||||
|
||||
function expect(opt, want, command = 'console.log("B")', wantsError = false) {
|
||||
const argv = ['-e', command];
|
||||
|
Loading…
x
Reference in New Issue
Block a user