Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-07-20 14:35:59 +0300
committerMichaël Zasso <targos@protonmail.com>2019-08-01 13:56:53 +0300
commit94e980c9d380fb4b63b175c3dd8ddaa7928b5747 (patch)
tree8f48bc749cf9d2a64539c50c361b384407e0be29 /src/node_v8.cc
parent1dd31fe1aacb7b5574ded1a89d39dbe72b0d827f (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_v8.cc')
-rw-r--r--src/node_v8.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc
index 9644468c4f6..ed2e71de106 100644
--- a/src/node_v8.cc
+++ b/src/node_v8.cc
@@ -139,7 +139,7 @@ void UpdateHeapCodeStatisticsArrayBuffer(
void SetFlagsFromString(const FunctionCallbackInfo<Value>& args) {
CHECK(args[0]->IsString());
String::Utf8Value flags(args.GetIsolate(), args[0]);
- V8::SetFlagsFromString(*flags, flags.length());
+ V8::SetFlagsFromString(*flags, static_cast<size_t>(flags.length()));
}