summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/modules/js/eval.hpp3
-rw-r--r--sca-cpp/trunk/modules/js/json-test.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/js/eval.hpp b/sca-cpp/trunk/modules/js/eval.hpp
index 6bbbdac0d7..cdb9037bb7 100644
--- a/sca-cpp/trunk/modules/js/eval.hpp
+++ b/sca-cpp/trunk/modules/js/eval.hpp
@@ -44,6 +44,9 @@ void reportError(unused ::JSContext *cx, const char *message, JSErrorReport *rep
#ifdef WANT_MAINTAINER_MODE
cdebug << (const char*)(report->filename? report->filename : "<no filename>") << ":"
<< (int)report->lineno << ":" << message << endl;
+#else
+ cerr << (const char*)(report->filename? report->filename : "<no filename>") << ":"
+ << (int)report->lineno << ":" << message << endl;
#endif
}
diff --git a/sca-cpp/trunk/modules/js/json-test.js b/sca-cpp/trunk/modules/js/json-test.js
index 5cc93a86eb..fb53fa6347 100644
--- a/sca-cpp/trunk/modules/js/json-test.js
+++ b/sca-cpp/trunk/modules/js/json-test.js
@@ -35,7 +35,7 @@ function testJSON() {
var r = json.readJSON(s2);
var w = json.writeJSON(r);
- assert(car(w) == "{\"@firstName\": \"test1\", \"lastName\": \"test\\ttab\", \"phones\": [\"408-1234\", \"650-1234\"]}");
+ assert(car(w) == "{\"phones\": [\"408-1234\", \"650-1234\"], \"lastName\": \"test\\ttab\", \"@firstName\": \"test1\"}");
var l4 = mklist(mklist("'ns1:echoString", mklist("'@xmlns:ns1", "http://ws.apache.org/axis2/services/echo"), mklist("'text", "Hello World!")));
var s4 = json.writeJSON(valuesToElements(l4));
@@ -43,7 +43,7 @@ function testJSON() {
var r5 = elementsToValues(json.readJSON(s4));
var s5 = json.writeJSON(valuesToElements(r5));
- assert(car(s5) == "{\"ns1:echoString\": {\"text\": \"Hello World!\", \"@xmlns:ns1\": \"http://ws.apache.org/axis2/services/echo\"}}");
+ assert(car(s5) == "{\"ns1:echoString\": {\"@xmlns:ns1\": \"http://ws.apache.org/axis2/services/echo\", \"text\": \"Hello World!\"}}");
return true;
}