(func, emit)
| 7956 | var toJSON = JSON.parse; |
| 7957 | |
| 7958 | function 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 |