diff options
Diffstat (limited to 'deps/v8/third_party/inspector_protocol/bindings/bindings.h')
-rw-r--r-- | deps/v8/third_party/inspector_protocol/bindings/bindings.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/v8/third_party/inspector_protocol/bindings/bindings.h b/deps/v8/third_party/inspector_protocol/bindings/bindings.h index 0fae2032e4..b24b59b0e1 100644 --- a/deps/v8/third_party/inspector_protocol/bindings/bindings.h +++ b/deps/v8/third_party/inspector_protocol/bindings/bindings.h @@ -58,10 +58,9 @@ class ValueMaybe { return is_just_ ? value_ : default_value; } bool isJust() const { return is_just_; } - // TODO(johannes): |is_just_| isn't reset by this operation - - // introduce && to ensure avoiding continued usage of |this|? T takeJust() { assert(is_just_); + is_just_ = false; return std::move(value_); } |