diff options
Diffstat (limited to 'WebCore/bindings/js/ScriptValue.h')
-rw-r--r-- | WebCore/bindings/js/ScriptValue.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/bindings/js/ScriptValue.h b/WebCore/bindings/js/ScriptValue.h index 855509a..e6e7cb1 100644 --- a/WebCore/bindings/js/ScriptValue.h +++ b/WebCore/bindings/js/ScriptValue.h @@ -31,6 +31,8 @@ #ifndef ScriptValue_h #define ScriptValue_h +#include "PlatformString.h" +#include "ScriptState.h" #include <runtime/Protect.h> namespace WebCore { @@ -40,11 +42,15 @@ class String; class ScriptValue { public: ScriptValue(JSC::JSValuePtr value = JSC::noValue()) : m_value(value) {} + virtual ~ScriptValue() {} JSC::JSValuePtr jsValue() const { return m_value.get(); } bool getString(String& result) const; + String toString(ScriptState* scriptState) const { return m_value.get().toString(scriptState); } + bool isEqual(ScriptState*, const ScriptValue&) const; bool isNull() const; bool isUndefined() const; + bool hasNoValue() const { return m_value == JSC::noValue(); } private: JSC::ProtectedJSValuePtr m_value; |