History

Added ScriptValue::getPropertyNames

ksuprynowicz committed 3 years ago

Commit ec3e87d1 parent e114d864 files · +40 −0Browse files

Showing the changes to libraries/script-engine/src/ScriptValue.cpp (1 of 4 files). Show all

Unified · Split

libraries/script-engine/src/ScriptValue.cpp+5−0
@@ -55,6 +55,7 @@ public: · 54 unmodified lines
55 const ScriptValue::PropertyFlags& flags = ScriptValue::KeepExistingFlags) override;55 const ScriptValue::PropertyFlags& flags = ScriptValue::KeepExistingFlags) override;
56 virtual void setPrototype(const ScriptValue& prototype) override;56 virtual void setPrototype(const ScriptValue& prototype) override;
57 virtual bool strictlyEquals(const ScriptValue& other) const override;57 virtual bool strictlyEquals(const ScriptValue& other) const override;
58 virtual inline QList<QString> getPropertyNames() const;
58 59
59 virtual bool toBool() const override;60 virtual bool toBool() const override;
60 virtual qint32 toInt32() const override;61 virtual qint32 toInt32() const override;
@@ -209,6 +210,10 @@ bool ScriptValueProxyNull::strictlyEquals(const ScriptValue& other) const { · 148 unmodified lines
209 return !other.isValid();210 return !other.isValid();
210}211}
211 212
213QList<QString> ScriptValueProxyNull::getPropertyNames() const {
214 return QList<QString>();
215}
216
212bool ScriptValueProxyNull::toBool() const {217bool ScriptValueProxyNull::toBool() const {
213 return false;218 return false;
214}219}