summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_js.c
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-04-16 06:02:12 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-04-16 06:02:12 +0000
commit47edd9d102446e0b0b661d7cc4a7b46eae6a9a5e (patch)
treec34a44976387d531487ce430718b97c85a945a2a /src/couchdb/couch_js.c
parentf5298dec9cb5ed763b73e47d4484bc2023a59a55 (diff)
Baby steps toward better reporting of os_process errors (and JavaScript syntax errors)
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_js.c')
-rw-r--r--src/couchdb/couch_js.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_js.c b/src/couchdb/couch_js.c
index a6fbde60..045e6c7f 100644
--- a/src/couchdb/couch_js.c
+++ b/src/couchdb/couch_js.c
@@ -231,6 +231,7 @@ EvalInContext(JSContext *context, JSObject *obj, uintN argc, jsval *argv,
} else {
ok = JS_EvaluateUCScript(sub_context, sandbox, src, srclen, NULL, -1,
rval);
+ ok = JS_TRUE;
}
out: