ScriptValue(JSC::VM& vm, JSC::JSValue value) : m_value(vm, value) { }
virtual ~ScriptValue();
+ operator JSC::JSValue() const { return jsValue(); }
JSC::JSValue jsValue() const { return m_value.get(); }
bool getString(JSC::ExecState*, String& result) const;
String toString(JSC::ExecState*) const;
bool operator==(const ScriptValue& other) const { return m_value == other.m_value; }
-#if ENABLE(INSPECTOR)
- PassRefPtr<Inspector::InspectorValue> toInspectorValue(JSC::ExecState*) const;
-#endif
+ RefPtr<Inspector::InspectorValue> toInspectorValue(JSC::ExecState*) const;
private:
JSC::Strong<JSC::Unknown> m_value;