diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-07-20 14:35:59 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-08-01 13:56:53 +0300 |
commit | 94e980c9d380fb4b63b175c3dd8ddaa7928b5747 (patch) | |
tree | 8f48bc749cf9d2a64539c50c361b384407e0be29 /src/node.cc | |
parent | 1dd31fe1aacb7b5574ded1a89d39dbe72b0d827f (diff) |
src: use non-deprecated overload of V8::SetFlagsFromString
PR-URL: https://github.com/nodejs/node/pull/28016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r-- | src/node.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node.cc b/src/node.cc index 6b6bacf5faa..17963d0b11b 100644 --- a/src/node.cc +++ b/src/node.cc @@ -945,7 +945,8 @@ void Init(int* argc, } if (per_process::cli_options->print_v8_help) { - V8::SetFlagsFromString("--help", 6); // Doesn't return. + // Doesn't return. + V8::SetFlagsFromString("--help", static_cast<size_t>(6)); UNREACHABLE(); } @@ -1002,7 +1003,8 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) { } if (per_process::cli_options->print_v8_help) { - V8::SetFlagsFromString("--help", 6); // Doesn't return. + // Doesn't return. + V8::SetFlagsFromString("--help", static_cast<size_t>(6)); UNREACHABLE(); } |