benchmarks/browser/benchmark.js
function createFunction() {
      // Lazy define.
      createFunction = function(args, body) {
        var result,
            anchor = freeDefine ? freeDefine.amd : Benchmark,
            prop = uid + 'createFunction';

        runScript((freeDefine ? 'define.amd.' : 'Benchmark.') + prop + '=function(' + args + '){' + body + '}');
        result = anchor[prop];
        delete anchor[prop];
        return result;
      };
      // Fix JaegerMonkey bug.
      // For more information see http://bugzil.la/639720.
      createFunction = support.browser && (createFunction('', 'return"' + uid + '"') || _.noop)() == uid ? createFunction : Function;
      return createFunction.apply(null, arguments);
    }
function createFunction() {
      // Lazy define.
      createFunction = function(args, body) {
        var result,
            anchor = freeDefine ? freeDefine.amd : Benchmark,
            prop = uid + 'createFunction';

        runScript((freeDefine ? 'define.amd.' : 'Benchmark.') + prop + '=function(' + args + '){' + body + '}');
        result = anchor[prop];
        delete anchor[prop];
        return result;
      };
      // Fix JaegerMonkey bug.
      // For more information see http://bugzil.la/639720.
      createFunction = support.browser && (createFunction('', 'return"' + uid + '"') || _.noop)() == uid ? createFunction : Function;
      return createFunction.apply(null, arguments);
    }
function createFunction ( ) { // Lazy define. createFunction = function ( args , body ) { var result , anchor = freeDefine ? freeDefine . amd : Benchmark , prop = uid + 'createFunction' ; runScript ( ( freeDefine ? 'define.amd.' : 'Benchmark.' ) + prop + '=function(' + args + '){' + body + '}' ) ; result = anchor [ prop ] ; delete anchor [ prop ] ; return result ; } ; // Fix JaegerMonkey bug. // For more information see http://bugzil.la/639720. createFunction = support . browser && ( createFunction ( '' , 'return"' + uid + '"' ) || _ . noop ) ( ) == uid ? createFunction : Function ; return createFunction . apply ( null , arguments ) ; }
Creates a function from the given arguments string and body.

@private
@param {string} args The comma separated function arguments.
@param {string} body The function body.
@returns {Function} The new function.
Creates a function from the given arguments string and body .