summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2019-05-20 13:48:56 -0400
committerAdam Kocoloski <kocolosk@apache.org>2019-05-25 08:27:43 -0400
commitb1e0037e7134aa0f0461e2685b9ea694838ab0c0 (patch)
treeeb05ee3cb40684bb53fb5cc9cbc1d962bb51b95b
parent8e6fa8bd257c5745cae7147ca4a1ed75c3eed6a8 (diff)
downloadcouchdb-b1e0037e7134aa0f0461e2685b9ea694838ab0c0.tar.gz
Ensure Dreyfus JS code is included in build
-rw-r--r--share/server/loop.js2
-rw-r--r--support/build_js.escript2
2 files changed, 4 insertions, 0 deletions
diff --git a/share/server/loop.js b/share/server/loop.js
index f17983940..5d7738911 100644
--- a/share/server/loop.js
+++ b/share/server/loop.js
@@ -25,6 +25,7 @@ function create_sandbox() {
sandbox.send = Render.send;
sandbox.getRow = Render.getRow;
sandbox.isArray = isArray;
+ sandbox.index = Dreyfus.index;
} catch (e) {
var sandbox = {};
}
@@ -114,6 +115,7 @@ var Loop = function() {
"add_fun" : State.addFun,
"add_lib" : State.addLib,
"map_doc" : Views.mapDoc,
+ "index_doc": Dreyfus.indexDoc,
"reduce" : Views.reduce,
"rereduce" : Views.rereduce
};
diff --git a/support/build_js.escript b/support/build_js.escript
index 0b3a859ef..e4cb282ee 100644
--- a/support/build_js.escript
+++ b/support/build_js.escript
@@ -20,6 +20,7 @@
main([]) ->
JsFiles = ["share/server/json2.js",
+ "share/server/dreyfus.js",
"share/server/filter.js",
"share/server/mimeparse.js",
"share/server/render.js",
@@ -30,6 +31,7 @@ main([]) ->
"share/server/loop.js"],
CoffeeFiles = ["share/server/json2.js",
+ "share/server/dreyfus.js",
"share/server/filter.js",
"share/server/mimeparse.js",
"share/server/render.js",