File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1577,6 +1577,11 @@ inline Object::PropertyLValue<Key>& Object::PropertyLValue<Key>::operator=(
1577
1577
return *this ;
1578
1578
}
1579
1579
1580
+ template <typename Key>
1581
+ inline Value Object::PropertyLValue<Key>::AsValue () const {
1582
+ return Value (*this );
1583
+ }
1584
+
1580
1585
template <typename Key>
1581
1586
inline Object::PropertyLValue<Key>::PropertyLValue (Object object, Key key)
1582
1587
: _env (object.Env ()), _object (object), _key (key) {}
Original file line number Diff line number Diff line change @@ -860,6 +860,9 @@ class Object : public TypeTaggable {
860
860
template <typename ValueType>
861
861
PropertyLValue& operator =(ValueType value);
862
862
863
+ // / Converts an L-value to a value. For convenience.
864
+ Value AsValue () const ;
865
+
863
866
private:
864
867
PropertyLValue () = delete ;
865
868
PropertyLValue (Object object, Key key);
You can’t perform that action at this time.
0 commit comments