diff --git a/common.gypi b/common.gypi index da9076c0044e21..d6f024ab93a365 100644 --- a/common.gypi +++ b/common.gypi @@ -37,7 +37,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.11', + 'v8_embedder_string': '-node.12', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/compiler/turboshaft/index.h b/deps/v8/src/compiler/turboshaft/index.h index 86fdab72b769c4..83f85c954273c2 100644 --- a/deps/v8/src/compiler/turboshaft/index.h +++ b/deps/v8/src/compiler/turboshaft/index.h @@ -480,7 +480,7 @@ class ConstOrV { template , V>>> ConstOrV(V index) // NOLINT(runtime/explicit) - : constant_value_(), value_(index) {} + : constant_value_(std::nullopt), value_(index) {} bool is_constant() const { return constant_value_.has_value(); } constant_type constant_value() const {