rem: var ballCount = 100; var balls; var bounces = 0; var i, j; this.randInit(); balls = new Array(ballCount); for (i = 0; i < ballCount; i++) { balls[i] = (new Ball()).initializeFor(this); } for (i = 0; i < 10; i++) { for (j = 0; j < ballCount; j++) { if (balls[j].bounce()) bounces++; } } if (bounces != 268) this.error("BounceBenchmark " + bounces); 
add: var ballCount = 100; var balls; var bounces = 0; var i, j; this.randInit(); balls = new Array(ballCount); for (i = 0; i < ballCount; i++) { balls[i] = (new Ball()).initializeFor(this); } for (i = 0; i < 10; i++) { for (j = 0; j < ballCount; j++) { if (balls[j].bounce()) bounces++; } } if (bounces != 268) this.error("BounceBenchmark " + bounces); 
context: function BounceBenchmark_run(){	var ballCount = 100;	var balls;	var bounces = 0;	var i, j;	this.randInit();	balls = new Array(ballCount);	for (i = 0; i < ballCount; i++) {		balls[i] = (new Ball()).initializeFor(this);	}	for (i = 0; i < 10; i++) {		for (j = 0; j < ballCount; j++) {			if (balls[j].bounce()) bounces++;		}	}	if (bounces != 268) this.error("BounceBenchmark " + bounces);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/08a077d57dc510e057e35378883f6673be4bb4ec/BenchPress.js/buggy/js/benchmarks/BenchPress.js