MCPcopy Index your code
hub / github.com/apache/pouchdb / evalFunctionWithEval

Function evalFunctionWithEval

lib/index-browser.js:7958–7969  ·  view source on GitHub ↗
(func, emit)

Source from the content-addressed store, hash-verified

7956var toJSON = JSON.parse;
7957
7958function evalFunctionWithEval(func, emit) {
7959 return scopeEval(
7960 "return (" + func.replace(/;\s*$/, "") + ");",
7961 {
7962 emit,
7963 sum,
7964 log,
7965 isArray,
7966 toJSON
7967 }
7968 );
7969}
7970
7971/*
7972 * Simple task queue to sequentialize actions. Assumes

Callers 2

mapperFunction · 0.70
reducerFunction · 0.70

Calls 1

scopeEvalFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…