Update Benchmark.js to be compatible with v3.0.0-pre.

This commit is contained in:
John-David Dalton
2014-06-25 00:03:37 -07:00
parent 72fcb4ebda
commit 175b14860e

View File

@@ -1813,7 +1813,7 @@
*/
function interpolate(string) {
// replaces all occurrences of `#` with a unique number and template tokens with content
return _.template(string.replace(/\#/g, /\d+/.exec(templateData.uid)), templateData);
return _.template(string.replace(/\#/g, /\d+/.exec(templateData.uid)))(templateData);
}
/*----------------------------------------------------------------------*/