提交 47006e90 authored 作者: Peter Olsson's avatar Peter Olsson

mod_v8: Renamed XML error property to a better name

上级 9aa607f1
......@@ -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}
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论