mod_v8: Renamed XML error property to a better name
This commit is contained in:
parent
9aa607f17e
commit
47006e90ea
|
@ -79,7 +79,7 @@ public:
|
|||
JS_XML_GET_PROPERTY_DEF(GetNameProperty);
|
||||
JS_XML_GET_PROPERTY_DEF(GetDataProperty);
|
||||
JS_XML_SET_PROPERTY_DEF(SetDataProperty);
|
||||
JS_XML_GET_PROPERTY_DEF(GetXmlErrorProperty);
|
||||
JS_XML_GET_PROPERTY_DEF(GetErrorProperty);
|
||||
};
|
||||
|
||||
#endif /* FS_XML_H */
|
||||
|
|
|
@ -402,7 +402,7 @@ JS_XML_SET_PROPERTY_IMPL(SetDataProperty)
|
|||
switch_xml_set_txt_d(_xml, js_safe_str(*str));
|
||||
}
|
||||
|
||||
JS_XML_GET_PROPERTY_IMPL(GetXmlErrorProperty)
|
||||
JS_XML_GET_PROPERTY_IMPL(GetErrorProperty)
|
||||
{
|
||||
const char *data = switch_xml_error(_xml);
|
||||
info.GetReturnValue().Set(String::NewFromUtf8(info.GetIsolate(), js_safe_str(data)));
|
||||
|
@ -423,7 +423,7 @@ static const js_function_t xml_methods[] = {
|
|||
static const js_property_t xml_props[] = {
|
||||
{"name", FSXML::GetNameProperty, JSBase::DefaultSetProperty},
|
||||
{"data", FSXML::GetDataProperty, FSXML::SetDataProperty},
|
||||
{"xmlError", FSXML::GetXmlErrorProperty, JSBase::DefaultSetProperty},
|
||||
{"error", FSXML::GetErrorProperty, JSBase::DefaultSetProperty},
|
||||
{0}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue