| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 9a7e95a002cad14d82c1d97473371758e187a6d1..ff8f42f842baec3dc1cb297ccd1f3ea086a81d65 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -6914,8 +6914,8 @@ class Maybe {
|
| // Will crash if the Maybe<> is nothing.
|
| V8_INLINE T ToChecked() const { return FromJust(); }
|
|
|
| - V8_WARN_UNUSED_RESULT V8_INLINE bool To(T& out) const {
|
| - if (V8_LIKELY(IsJust())) out = value_;
|
| + V8_WARN_UNUSED_RESULT V8_INLINE bool To(T* out) const {
|
| + if (V8_LIKELY(IsJust())) *out = value_;
|
| return IsJust();
|
| }
|
|
|
|
|