anchor.diff:  
   -define(SERVER, ?MODULE).
   
  --record(state, {manager, pool, ctx, next_funid=1, anon_funs=[], in_batch=false}).
  +-record(state, {manager, pool, ctx, in_batch=false}).
   
   start_link(Manager, PoolName) ->
       gen_server:start_link(?MODULE, [Manager, PoolName], []).
  
positive.code: 
  -behaviour(gen_server).
  
  -define(MAX_ANON_FUNS, 25).
  
  %% API
  -export([start_link/2, dispatch/4, blocking_dispatch/3, reload/1,
           batch_blocking_dispatch/2, start_batch/1, finish_batch/1, batch_dispatch/3]).
  
negative.code:     riak_kv_js_manager:mark_idle(Pool);
  maybe_idle(#state{in_batch=true}) ->
      ok.
  
  build_arg_list([], Accum) ->
      lists:reverse(Accum);
  build_arg_list([H|[]], Accum) ->
      build_arg_list([], [js_mochijson2:encode(H)|Accum]);
  build_arg_list([H|T], Accum) ->
      build_arg_list(T, [[js_mochijson2:encode(H), ","]|Accum]).
  
  