diff options
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
| -rw-r--r-- | src/qml/jsruntime/qv4value_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h index 259334e12c..643d6c16a9 100644 --- a/src/qml/jsruntime/qv4value_p.h +++ b/src/qml/jsruntime/qv4value_p.h @@ -46,6 +46,11 @@ struct Q_QML_PRIVATE_EXPORT Value : public StaticValue return {staticValue._val}; } + static constexpr Value undefinded() + { + return fromStaticValue(Encode::undefined()); + } + inline bool isString() const; inline bool isStringOrSymbol() const; inline bool isSymbol() const; @@ -412,6 +417,9 @@ struct HeapValue : Value { void set(EngineBase *e, HeapBasePtr b) { WriteBarrier::write(e, base(), data_ptr(), b->asReturnedValue()); } + void set(EngineBase *e, ReturnedValue rv) { + WriteBarrier::write(e, base(), data_ptr(), rv); + } }; template <size_t o> |
