lib/bson/bson.js
function(functionCache, hash, functionString, object) {
  // Contains the value we are going to set
  var value = null;

  // Check for cache hit, eval if missing and return cached function
  if(functionCache[hash] == null) {
    eval("value = " + functionString);
    functionCache[hash] = value;
  }
  // Set the object
  return functionCache[hash].bind(object);
}
function(functionCache, hash, functionString, object) {
  // Contains the value we are going to set
  var value = null;

  // Check for cache hit, eval if missing and return cached function
  if(functionCache[hash] == null) {
    eval("value = " + functionString);
    functionCache[hash] = value;
  }
  // Set the object
  return functionCache[hash].bind(object);
}
function ( functionCache , hash , functionString , object ) { // Contains the value we are going to set var value = null ; // Check for cache hit, eval if missing and return cached function if ( functionCache [ hash ] == null ) { eval ( "value = " + functionString ) ; functionCache [ hash ] = value ; } // Set the object return functionCache [ hash ] . bind ( object ) ; }
Ensure eval is isolated.

@ignore
@api private
Ensure eval is isolated .