]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_v8: Renamed XML error property to a better name
authorPeter Olsson <peter@olssononline.se>
Tue, 14 Jan 2014 22:03:37 +0000 (23:03 +0100)
committerPeter Olsson <peter@olssononline.se>
Tue, 14 Jan 2014 22:05:55 +0000 (23:05 +0100)
src/mod/languages/mod_v8/include/fsxml.hpp
src/mod/languages/mod_v8/src/fsxml.cpp

index fb806ce653d796379b37b52190de7f06774d6415..e831c659ec12cb7c8c9dd43e869ce0b2e54c0982 100644 (file)
@@ -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 */
index bda854e5e4fdc2febfbf52d5cec73f8369b5af08..58fb3bf0c03f61a87e633635a2b8d7c6afc38f7c 100644 (file)
@@ -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}
 };