bestiejs/benchmark.js — pull request #16 by levjj (2012-04-04 18:16:01+00:00)
Title: "Unrecognized token [" created in the preprocess function

Benchmark.js on Chromium is buggy because of the UID interpolation in the preprocess method.

RegExp.exec returns an array, so `/\d+/.exec("uid123")` returns `["123"]`.

When used with the `String.replace` function, it usually works fine, however on Chromium `("var r$ = 3").replace(/\$/g, ["123"])` results in `"var r[123] = 3"` which cannot be compiled and causes Benchmark.js to fail.